public helper(Connection _c) { IsMainWindow = false; c = _c; InitializeComponent(); Initial(0.95); }
private void buttonChat_Click(object sender, RoutedEventArgs e) { if (textBoxChat.Text != "") { Data msgToSend = new Data(); msgToSend.cmdCommand = Command.chat; msgToSend.cardID = 0; msgToSend.usersInRoom = textBoxChat.Text; if (!w.client.Send(msgToSend)) { Connection c = new Connection(); c.Show(); this.Close(); return; } textBoxChat.Text = ""; } }