private void onButtonClick(ButtonPressedEventArgs e) { if (e.Button.Kind.Equals(ButtonPredefines.Plus)) { _presenter.AddOutputInterval(); } else { _presenter.RemoveOutputInterval(_gridViewBinder.FocusedElement); } }
private void addRemoveButtonClick(ButtonPressedEventArgs e) { if (Equals(e.Button.Tag, ButtonType.Add)) { _presenter.AddOutputInterval(); } else { _presenter.RemoveOutputInterval(_gridViewBinder.FocusedElement); } mainView.CloseEditor(); }
private void addRemoveButtonClick(object sender, ButtonPressedEventArgs e) { var editor = (ButtonEdit)sender; var buttonIndex = editor.Properties.Buttons.IndexOf(e.Button); if (buttonIndex == 0) { _presenter.AddOutputInterval(); } else { _presenter.RemoveOutputInterval(_gridViewBinder.FocusedElement); } mainView.CloseEditor(); }