Ejemplo n.º 1
0
        private void metroTile3_Click(object sender, EventArgs e)
        {
            AdminDashboardcs ad = new AdminDashboardcs();

            this.Hide();
            ad.ShowDialog();
            this.Close();
        }
Ejemplo n.º 2
0
 private void metroButton1_Click(object sender, EventArgs e)
 {
     RMS.AdminDashboardcs.checkingadmin = 0;
     controller.AdminLogin(metroTextBox1.Text, metroTextBox2.Text);
     if (adminloginvalidator == 100)
     {
         AdminDashboardcs ud = new AdminDashboardcs();
         this.Hide();
         ud.ShowDialog();
         this.Close();
     }
     else
     {
         DialogResult DDR = MessageBox.Show("Invalid Username or Password", "Railway Management System", MessageBoxButtons.OK,
                                            MessageBoxIcon.Information);
     }
 }