Exemplo n.º 1
0
 void DeleteConfig(DataSourceModel dataSourceModel)
 {
     if (MessageBox.Show("是否删除选中的记录?", "删除确认", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
     {
         this.dataSourceModels.Remove(dataSourceModel);
     }
 }
Exemplo n.º 2
0
 void SaveExConfig(DataSourceModel dataSourceModel)
 {
     //if (MessageBox.Show("是否删除选中的记录?", "删除确认", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
     //{
     //    this.dataSourceModels.Remove(dataSourceModel);
     //}
 }
Exemplo n.º 3
0
 public void SetValue(DataSourceModel model)
 {
     this.Id         = model.Id;
     this.DBType     = model.DBType;
     this.DBAlias    = model.DBAlias;
     this.DBConnUrl  = model.DBConnUrl;
     this.ConnStatus = model.ConnStatus;
 }
Exemplo n.º 4
0
 void EditConfig(DataSourceModel dataSourceModel)
 {
     SelectedDataSourceModel = dataSourceModel.Clone();
     TestResult = string.Empty;
 }