public static void Registration(string data)
 {
     if (data == "true")
     {
         MessageBox.Show("Вы успешно зарегистровались");
         SetUI.SetRAControl(new Avtorisation(), control);
     }
     else if (data == "false")
     {
         MessageBox.Show("С таким Логином пользователь уже есть");
     }
 }
Beispiel #2
0
 private void IsAvtorization()
 {
     if (File.Exists("./LogIn/LogIn.txt"))
     {
         string[] infoUser = File.ReadAllLines("./LogIn/LogIn.txt");
     }
     else
     {
         System.Windows.Forms.Control form = this;
         SetUI.SetRAControl(new Avtorisation(), null);
     }
 }
 public static void Disconnect()
 {
     MessageBox.Show("Что то пошло не так, попробуйте зайти поже");
     SetUI.SetRAControl(new Avtorisation(), control);
 }
 private void button1_Click_1(object sender, EventArgs e)
 {
     System.Windows.Forms.Control control = this;
     SetUI.SetRAControl(new Avtorisation(), control);
 }
 private void button2_Click(object sender, EventArgs e)
 {
     System.Windows.Forms.Control control = this;
     SetUI.SetRAControl(new Registration(), control);
 }