Exemple #1
0
 private void backButton_Click(object sender, EventArgs e)
 {
     if (permision == 0)
     {
         Hide();
         InteractionAdminWindow adminWindow = new InteractionAdminWindow(client, permision);
         adminWindow.ShowDialog();
     }
     else if (permision == 1)
     {
         Hide();
         InteractionWindow interaction = new InteractionWindow(client, permision);
         interaction.ShowDialog();
     }
     else
     {
         Hide();
         LoginWindow loginWindow = new LoginWindow(client);
         loginWindow.ShowDialog();
     }
 }
Exemple #2
0
 private void backButton_Click(object sender, EventArgs e)
 {
     if (permision == 0)
     {
         Hide();
         InteractionAdminWindow adminWindow = new InteractionAdminWindow(client, permision);
         adminWindow.ShowDialog();
     }
     else if (permision == 1)
     {
         Hide();
         InteractionWindow userWindow = new InteractionWindow(client, permision);
         userWindow.ShowDialog();
     }
     else
     {
         Hide();
         comunicator.SendMessage(stream, "BCK");
         LoginWindow loginWindow = new LoginWindow(client);
         loginWindow.ShowDialog();
     }
 }