Click or drag to resize

PageConfigurationUIButtonNew_Click Method

Button event: triggers of event New 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 ButtonNew_Click(
	Object sender,
	RoutedEventArgs e
)

Parameters

sender
Type: SystemObject
Button object (this object to pass on event DataGridCellEditEnding)
e
Type: System.WindowsRoutedEventArgs
Examples
This example override this event and creates a new data item
/// <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);
    }
}
See Also