Exemple #1
0
 public Form_Main(User user, Class_LinkWithServer lws)
 {
     InitializeComponent();
     this.user  = user;
     this.lws   = lws;
     lws.form   = this;
     friendList = new Control_FriendList(lws.lwc);
     reminder   = new Control_Reminder(lws.lwc);
     lws.start(user);
     friendList.Show();
 }
Exemple #2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox1.SelectedIndex == 0)
     {
         if (lws.Quit == true)
         {
             string msg = lws.login(user.id, user.password);
             if (msg.Split(',')[0] != "login_success")
             {
                 comboBox1.SelectedIndex = 1;
             }
             else
             {
                 lws.start(user);
             }
         }
     }
     else
     {
         close();
     }
 }