private void ButtonClick(object sender, EventArgs eventArgs) { var button = sender as IButton; if (button == null) { return; } BOEditorDialogResult = (CloseBOEditorDialogResult)Enum.Parse(typeof(CloseBOEditorDialogResult), button.Name); this.Close(); }
private void ButtonClick(object sender, EventArgs eventArgs) { var button = sender as IButton; if (button == null) return; BOEditorDialogResult = (CloseBOEditorDialogResult)Enum.Parse(typeof(CloseBOEditorDialogResult), button.Name); this.Close(); }