Exemplo n.º 1
0
 public void SetValue(InterfaceModel model)
 {
     this.Id         = model.Id;
     this.IFAlias    = model.IFAlias;
     this.IFUrl      = model.IFUrl;
     this.ConnStatus = model.ConnStatus;
 }
Exemplo n.º 2
0
 void DeleteConfig(InterfaceModel model)
 {
     if (MessageBox.Show("是否删除选中的记录?", "删除确认", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
     {
         this.InterfaceModels.Remove(model);
     }
 }
Exemplo n.º 3
0
 void SelectConfig(InterfaceModel model)
 {
     if (TestResult != null && TestResult.Rows.Count > 0)
     {
         ChartViewModel.DataTable = TestResult;
     }
 }
Exemplo n.º 4
0
 void EditConfig(InterfaceModel dataSourceModel)
 {
     SelectedInterfaceModel = dataSourceModel.Clone();
     TestResult             = null;
 }