private void LoginForm_EnterAccount() { shopModel.EnterAccount(loginForm.UsersLogin, loginForm.UsersPassword, out string errorMessage); if (!string.IsNullOrEmpty(errorMessage)) { loginForm.ShowError(errorMessage); return; } ServiceForms.ShowForm("ShopProductsForm"); ServiceForms.CloseForm(loginForm); }
private void RegisterForm_Register() { shopModel.RegisterAccount(registerForm.UsersLogin, registerForm.UsersPasswrod, out string errorMessage); if (!string.IsNullOrEmpty(errorMessage)) { registerForm.ShowError(errorMessage); return; } MessageBox.Show("Вы успешны зарегестрированы"); ServiceForms.ShowForm("LoginForm"); ServiceForms.CloseForm(registerForm); }
public void Start(IBaseForm form) { ServiceForms.ShowForm(form); }
private void LoginForm_Register() { ServiceForms.ShowForm("RegisterForm"); ServiceForms.CloseForm(loginForm); }
private void RegisterForm_EnterAccount() { ServiceForms.ShowForm("LoginForm"); ServiceForms.CloseForm(registerForm); }