Example #1
0
      private void metroButton1_MouseClick(object sender, MouseEventArgs e)
      {
          String var = metroComboBox1.Text;

          if (var == "Admin")
          {
              priority = 1;
              metroTextBox1.Visible = true;
              metroButton3.Visible  = true;
          }
          else if (var == "Employee" || var == "Customer")
          {
              if (var == "Employee")
              {
                  priority = 2;
              }
              else
              {
                  priority = 3;
              }

              this.Hide();

              RegistrationUI frm = new RegistrationUI();
              frm.ShowDialog();
              this.Close();
          }
          else
          {
              MessageBox.Show("PLEASE SELECT A TYPE");
          }
      }
Example #2
0
      private void metroButton3_Click(object sender, EventArgs e)
      {
          string admincheck = metroTextBox1.Text;

          if (admincheck == "007")
          {
              this.Hide();

              RegistrationUI frm = new RegistrationUI();
              frm.ShowDialog();
              this.Close();
          }
          else
          {
              MessageBox.Show("Invalid PASSWORD!");
          }
      }