Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         Hide();
         FormAdminOption formAdmin = new FormAdminOption();
         formAdmin.ShowDialog();
         Close();
     }
     else if (radioButton2.Checked)
     {
         Hide();
         FormCashier formStat = new FormCashier();
         formStat.ShowDialog();
         Close();
     }
     else
     {
         message.MessageOk("Необходимо выбрать хотя бы 1 из пунктов", "Error 1");
     }
 }
Example #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     Hide();
     formtoopen2.ShowDialog();
     Close();
 }