Click or drag to resize

PageConfigurationUIButtonDelete_Click Method

Button event: triggers of event Delete or override this.

Namespace:  SOWIWin.Helper
Assembly:  SOWIWin.Helper (in SOWIWin.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
protected virtual void ButtonDelete_Click(
	Object sender,
	RoutedEventArgs e
)

Parameters

sender
Type: SystemObject
Button object
e
Type: System.WindowsRoutedEventArgs
Examples
This example override this event and deletes selected data item
/// <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());
    }
}
See Also