private void InitButtons() { _btnCancel.Click += (sender, e) => { Dismiss(); }; _btnOk.Click += (object sender, EventArgs e) => { OnOkButtonClickEventsArgs args; if (_isLogIn) { args = new OnOkButtonClickEventsArgs(_email.Text, _password.Text, _isLogIn); } else { args = new OnOkButtonClickEventsArgs(_email.Text, _password.Text, _isLogIn, _name.Text, _lastName.Text); } Dismiss(); OkButtonClick?.Invoke(this, args); }; }
private void OnOkClicked(object sender, RoutedEventArgs e) { OkButtonClick?.Invoke(sender, e); }
private void OkButtonClicked(object sender, EventArgs e) { OkButtonClick?.Invoke(); }