Beispiel #1
0
 private void PrivateClick()
 {
     if (lst_clients.SelectedItem != null)
     {
         PrivateRoom create = new PrivateRoom();
         create.CreatePrivateHandler(client.GetStream(), lst_clients.SelectedItem.ToString(), request);
     }
     else
     {
         MessageBox.Show("User is not choosen. Please, chose the user first.");
     }
 }
Beispiel #2
0
 private void btn_private_Click(object sender, EventArgs e)
 {
     if (lst_clients.SelectedItem != null)
     {
         PrivateRoom create = new PrivateRoom();
         create.CreatePrivateHandler(client.GetStream(), lst_clients.SelectedItem.ToString(), request);
     }
     else
     {
         MessageBox.Show("User is not choosen. Please, chose the user first.");
     }
     refresh.RefreshHendler(client.GetStream(), "Rooms", request);
 }