private void BTN_singIn_log(object sender, RoutedEventArgs e) { Service1Client client = new Service1Client(); SingInUser singInUser = new SingInUser(); if (string.IsNullOrEmpty(TB_email_log.Text)) { MessageBox.Show("Email is null"); TB_email_log.Focus(); return; } else if (string.IsNullOrEmpty(PB_password_log.Password)) { MessageBox.Show("Password is null"); PB_password_log.Focus(); return; } singInUser.EmailSingIn = TB_email_log.Text; singInUser.PasswordSingIn = PB_password_log.Password; bool sing = client.SingIn(singInUser); if (sing == true) { MainWindow mainWindow = new MainWindow(singInUser); mainWindow.Show(); Close(); } else { MessageBox.Show("Email or Password not valid"); } }
public MainWindow(SingInUser user) { InitializeComponent(); _user = user; ShowTvar(); }
public AddAnimals(SingInUser user) { _user = user; InitializeComponent(); }
public MyAnimals(SingInUser user) { _user = user; InitializeComponent(); ShowMyTvar(); }