protected void editClick(object sender, RoutedEventArgs e) { try { this.Update(DashboardControlEdit.ShowBox(this, this.StorageInfo)); } catch (Exception ex) { this.log.Exception(9999, "editClick", "", ex); } }
// Adding new control. Need to initialize the storage model used in edit dialog private bool AddNew(int row) { if (this.nextColumn <= this.max) { T control = new T(); control.InitNew(row, this.nextColumn, this.DefaultDataType()); control.SetEditState(true); DashboardControlDataModel dm = DashboardControlEdit.ShowBox(null, control.StorageInfo); if (dm != null) { control.Update(dm); this.InsertControl(control); return(true); } } return(false); }