Beispiel #1
0
        private void btnLogin_Click(object sender, System.EventArgs e)
        {
            User user = userService.LoginWithEmailAndPassword(tbxEmail.Text.Trim(), tbxPassword.Text.Trim());

            if (user != null)
            {
                Session.currentUser = user;
                NavigationTool.Open(this, new frmHome());
            }
            else
            {
                MetroMessageBox.Show(this,
                                     "Bu bilgilere ait bir kullanıcı bulunamadı.",
                                     "Hata!",
                                     System.Windows.Forms.MessageBoxButtons.OK,
                                     System.Windows.Forms.MessageBoxIcon.Error,
                                     100);
            }
        }
 private void tbxHome_Click(object sender, System.EventArgs e)
 {
     NavigationTool.Open(this, new frmHome());
 }
Beispiel #3
0
 private void tileLogout_Click(object sender, System.EventArgs e)
 {
     NavigationTool.Open(this, new frmLogin());
 }
Beispiel #4
0
 private void tileSchedule_Click(object sender, System.EventArgs e)
 {
     NavigationTool.Open(this, new frmSchedules());
 }
Beispiel #5
0
 private void tileSettings_Click(object sender, System.EventArgs e)
 {
     NavigationTool.Open(this, new frmSettings());
 }
Beispiel #6
0
 private void tileCustomers_Click(object sender, System.EventArgs e)
 {
     NavigationTool.Open(this, new frmCustomers());
 }