PageConfigurationUIButtonNew_Click Method |
Namespace: SOWIWin.Helper
/// <summary> /// Button event: creates a new data item /// </summary> /// <param name="sender">Button object</param> /// <param name="e"></param> protected override void ButtonNew_Click(object sender, RoutedEventArgs e) { try { this.Configuration.Insert(new DataItemClass()); this.DataGridConfiguration.DataContext = this.Configuration.GetAll(); } catch (Exception ex) { SOWIWin.Helper.Message.Show(ref ex); } }