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