// SEARCH WINDOW 응답 함수 private void SOW_OnChildTextInputEvent(object Parameters) { if (Parameters != null) { if (mp != null) { mp.Grid_search.Visibility = Visibility.Collapsed; } if (SOW != null) { SOW.Close(); SOW.OnChildTextInputEvent -= new SelectOptWindow.OnChildTextInputHandler(SOW_OnChildTextInputEvent); SOW = null; } if (Parameters is SearchData) { Thread t = new Thread(new ParameterizedThreadStart(CreateChart_influx)); t.Start(Parameters); } else if (Parameters is List <SearchData> ) { Thread t = new Thread(new ParameterizedThreadStart(CreateCharts_influx)); t.Start(Parameters); } else if (Parameters is string) { Thread t = new Thread(new ParameterizedThreadStart(Chart_Reload)); t.Start(Parameters); } //CreateChart(options); } SOW = null; }
public VM_MainPage() { head = BASE.getBASE(); Vms = new ObservableCollection <ChartData>(); Searches = new ObservableCollection <SearchData>(); SOW = null; }
// SEARCH WINDOW 생성 public async void RequestSelect(SearchData s = null, object o = null) { if (SOW == null) { s = await Getminmax(s); SOW = new SelectOptWindow(); SOW.WindowStartupLocation = WindowStartupLocation.CenterOwner; SOW.Topmost = true; SOW.OnChildTextInputEvent += new SelectOptWindow.OnChildTextInputHandler(SOW_OnChildTextInputEvent); SOW.Show(); } else { s = await Getminmax(s); SOW.Focus(); } if (o != null) { mp = (MainPage)o; } SOW.SetData(s); }
public void Chart_Modify() { if (Vms.Count != 0) { if (SOW == null) { SOW = new SelectOptWindow(); SOW.WindowStartupLocation = WindowStartupLocation.CenterOwner; SOW.Topmost = true; SOW.OnChildTextInputEvent += new SelectOptWindow.OnChildTextInputHandler(SOW_OnChildTextInputEvent); SOW.Show(); } else { SOW.Focus(); } SOW.SetData(); } }