PageConfigurationUIButtonDelete_Click Method |
Namespace: SOWIWin.Helper
/// <summary> /// Button event: deletes selected data item /// </summary> /// <param name="sender">Button object</param> /// <param name="e"></param> protected override void ButtonDelete_Click(object sender, RoutedEventArgs e) { try { var lItem = (SIC.Setting.ISettingXML)this.DataGridConfiguration.SelectedItem; this.Configuration.Delete(lItem.Name); this.DataGridConfiguration.DataContext = this.Configuration.GetAll(); } catch (Exception ex) { SOWIWin.Helper.Message.Show(ex.Message.ToString()); } }