private void SetButtonsActions() { if (!_holder.SaveButton.HasOnClickListeners) { _holder.SaveButton.Click += (s, e) => { SaveButtonClick?.Invoke(_holder.NameEditText.Text, _holder.LastnameEditText.Text, _holder.StatusEditText.Text); }; } if (!_holder.CancelButton.HasOnClickListeners) { _holder.CancelButton.Click += (s, e) => { CancelButtonClick?.Invoke(); }; } _holder.NameEditText.TextChanged += (sender, args) => { _iSNameChahged = true; }; _holder.NameEditText.FocusChange += (sender, args) => { if (_iSNameChahged && !args.HasFocus) { NameWasChanged?.Invoke(_holder.NameEditText.Text); } }; _holder.LastnameEditText.TextChanged += (sender, args) => { _iSLastNameChahged = true; }; _holder.LastnameEditText.FocusChange += (sender, args) => { if (_iSLastNameChahged && !args.HasFocus) { LastNameWasChanged?.Invoke(_holder.LastnameEditText.Text); } }; _holder.StatusEditText.TextChanged += (sender, args) => { _iSStatusChahged = true; }; _holder.StatusEditText.FocusChange += (sender, args) => { if (_iSStatusChahged && !args.HasFocus) { StatusWasChanged?.Invoke(_holder.StatusEditText.Text); } }; }
partial void _lastNameTextField_DidEnd(UITextField sender) { LastNameWasChanged?.Invoke(_lastNameTextField.Text); }