private void BtnSeek_Click(object sender, RoutedEventArgs e) //查询按钮处理 { // Wait wait = new Wait(); ObservableCollection <ParaListory> paraResultList = new ObservableCollection <ParaListory>(); /* ((this.FindName("DATA_GRIDpp")) as DataGrid)*/ MainHandle handle = new MainHandle(); DateTime t1 = this.SelectedStartTime.SelectDateTime; DateTime t2 = this.SelectedStopTime.SelectDateTime; TextBlock textBlock = DataGridHelper.GetVisualChild <TextBlock>(dataGrid, v => v.Name == "tb_ParaCode"); string tbParaCode = textBlock.Text; if (null != textBlock) { // MessageBox.Show(textBlock.Text); } paraResultList = handle.Handle(t1, t2, tbParaCode); // wait.ShowDialog(); if (paraResultList.Count > 0) { DisplayValues.ItemsSource = paraResultList; //显示查询结果 } else { MessageBox.Show("查询不到数据..."); } }
void Start() { mainHandle = new MainHandle(); NetCore.Instance.registHandle(mainHandle); none = GameObject.Find(record.name + "/Nothing"); none.SetActive(false); loadData(); }
// 退出按钮 public void logoutBtnClick() { mainHandle = new MainHandle(); UserManager.logout(); mainHandle.roomList((error, result) => { }); NetCore.Instance.Close(); Application.LoadLevel("login"); }
// Use this for initialization void Start() { //Debug.Log("123456:"+UserManager.getUserInfoFromUserDefault().avatar); mainHandle = new MainHandle(); NetCore.Instance.registHandle(mainHandle); // 默认编辑图像 Image editImg1 = userCenter.Find <Image>(userCenter.name + "/UserInfo/Name/Edit"); editImg1.SetLocalImage("Textures/main/main_edit"); GameObject.Find(userCenter.name + "/UserInfo/Name/UserName").SetActive(true); GameObject.Find(userCenter.name + "/UserInfo/Name/NameField").SetActive(false); initVal(); }
public void GetTelemetryData() //for 遥测数据 page显示 { ObservableCollection <ParaListory> paraResultList = new ObservableCollection <ParaListory>(); /* ((this.FindName("DATA_GRIDpp")) as DataGrid)*/ MainHandle handle = new MainHandle(); // MainWindow2 parentWindow = new MainWindow2(); // string ParaCode = ParentWindow.tBPara.Text; string ParaCode = ParentWindow.ComboxPara.Text.Split('-')[0]; DateTime t1 = ParentWindow.SelectedStartTime.SelectDateTime; DateTime t2 = this.parentWindow.SelectedStopTime.SelectDateTime; paraResultList = handle.Handle(t1, t2, ParaCode); if (paraResultList.Count > 0) { DisplayValues.ItemsSource = paraResultList; //显示查询结果 } else { MessageBox.Show("查询不到数据..."); } }
/** * 注册loginHandle */ void registHandle() { mainHandle = new MainHandle(); NetCore.Instance.registHandle(mainHandle); }