|
@@ -165,18 +165,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
this.svgImageCollection1.Add("Running", SvgHelper.CreateCycle("#2E8B57"));
|
|
|
gridView1.CustomDrawCell += GridView1_CustomDrawCell;
|
|
|
gridView1.DoubleClick += GridView1_DoubleClick;
|
|
|
- txtTimeCho_SelectedIndexChanged(null, null);
|
|
|
- using (RHDWContext db = new RHDWContext())
|
|
|
- {
|
|
|
- this.txtFrequpMHz.Properties.Items.Clear();
|
|
|
- this.txtFrequpMHz.Properties.Items.Add(new ImageComboBoxItem("全部", null));
|
|
|
- var sigs = await db.SigInfos.ToListAsync();
|
|
|
- foreach (var item in sigs)
|
|
|
- {
|
|
|
- this.txtFrequpMHz.Properties.Items.Add(new ImageComboBoxItem((item.FreqUp / 1e6).ToString("f3"), item.FreqUp));
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+ txtTimeCho_SelectedIndexChanged(null, null);
|
|
|
WaitHelper.CloseForm();
|
|
|
}
|
|
|
|
|
@@ -241,7 +230,16 @@ namespace XdCxRhDW.App.UserControl
|
|
|
gridView2.Columns[nameof(ModelPosRes.CxResID)].Visible = false;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ using (RHDWContext db = new RHDWContext())
|
|
|
+ {
|
|
|
+ this.txtFrequpMHz.Properties.Items.Clear();
|
|
|
+ this.txtFrequpMHz.Properties.Items.Add(new ImageComboBoxItem("全部", null));
|
|
|
+ var sigs = await db.SigInfos.ToListAsync();
|
|
|
+ foreach (var item in sigs)
|
|
|
+ {
|
|
|
+ this.txtFrequpMHz.Properties.Items.Add(new ImageComboBoxItem((item.FreqUp / 1e6).ToString("f3"), item.FreqUp));
|
|
|
+ }
|
|
|
+ }
|
|
|
txtFrequpMHz.SelectedIndex = 0;
|
|
|
var btnEdit = (layoutControlGroup1.CustomHeaderButtons[1] as GroupBoxButton);
|
|
|
var btnDel = (layoutControlGroup1.CustomHeaderButtons[2] as GroupBoxButton);
|