public void UIButtonRemove_Click(object sender, RoutedEventArgs e) { OpOp.RemoveOperator.IdOperator = UIFindOperator.IdOperator; if (OpOp.RemoveOperator.Execute()) { UIOperatorForm.ClearUI(); UIFindOperator.ClearUI(); } UIMessage.TextMessage = OpOp.RemoveOperator.Information; }
private void UIButtonAddOperator_Click(object sender, RoutedEventArgs e) { OpOp.RegistrationOperator.Login = UIOperatorForm.Login; OpOp.RegistrationOperator.Password = UIOperatorForm.UIPasswordPassword; OpOp.RegistrationOperator.PasswordCheck = UIOperatorForm.UIPasswordPassword; if (OpOp.RegistrationOperator.Execute()) { UIOperatorForm.ClearUI(); UIFindOperator.ClearUI(); } UIMessage.TextMessage = OpOp.RegistrationOperator.Information; }