WingMan – Diff between revs 24 and 25

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 24 Rev 25
Line 301... Line 301...
301 RemoteBindingsListBox.Items.AddRange(bindings); 301 RemoteBindingsListBox.Items.AddRange(bindings);
302 } 302 }
Line 303... Line 303...
303   303  
304 private void OnLobbyMessageReceived(object sender, LobbyMessageReceivedEventArgs e) 304 private void OnLobbyMessageReceived(object sender, LobbyMessageReceivedEventArgs e)
-   305 {
-   306 notifyIcon1.BalloonTipTitle = Properties.Strings.Lobby_message;
-   307 notifyIcon1.BalloonTipText = $"{e.Nick} : {e.Message}{Environment.NewLine}";
-   308 notifyIcon1.ShowBalloonTip(1000);
305 { 309  
306 LobbyTextBox.AppendText($"{e.Nick} : {e.Message}{Environment.NewLine}"); 310 LobbyTextBox.AppendText($"{e.Nick} : {e.Message}{Environment.NewLine}");
Line 307... Line 311...
307 } 311 }
308   312  
Line 480... Line 484...
480 Password.Enabled = false; 484 Password.Enabled = false;
481 } 485 }
Line 482... Line 486...
482   486  
483 private async void LobbySayTextBoxKeyDown(object sender, KeyEventArgs e) 487 private async void LobbySayTextBoxKeyDown(object sender, KeyEventArgs e)
-   488 {
-   489 // Do not send messages if the communication is not running.
-   490 if (!MqttCommunication.Running)
-   491 return;
484 { 492  
485 if (e.KeyCode != Keys.Enter) 493 if (e.KeyCode != Keys.Enter)
Line 486... Line 494...
486 return; 494 return;
Line 576... Line 584...
576 await SaveLocalMouseKeyBindings(); 584 await SaveLocalMouseKeyBindings();
577 } 585 }
Line 578... Line 586...
578   586  
579 private async void LobbySayButtonClick(object sender, EventArgs e) 587 private async void LobbySayButtonClick(object sender, EventArgs e)
-   588 {
-   589 // Do not send messages if the communication is not running.
-   590 if (!MqttCommunication.Running)
-   591 return;
580 { 592  
Line 581... Line 593...
581 await LobbyMessageSynchronizer.Broadcast(LobbySayTextBox.Text); 593 await LobbyMessageSynchronizer.Broadcast(LobbySayTextBox.Text);
582   594  
Line 686... Line 698...
686 private void WingManFormResized(object sender, EventArgs e) 698 private void WingManFormResized(object sender, EventArgs e)
687 { 699 {
688 if (WindowState == FormWindowState.Minimized) 700 if (WindowState == FormWindowState.Minimized)
689 { 701 {
690 Hide(); 702 Hide();
691 notifyIcon1.Visible = true; -  
692 } 703 }
693 } 704 }
Line 694... Line 705...
694   705  
695 private void NotifyIconDoubleClick(object sender, EventArgs e) 706 private void NotifyIconDoubleClick(object sender, EventArgs e)
696 { 707 {
697 Show(); 708 Show();
698 WindowState = FormWindowState.Normal; -  
699 notifyIcon1.Visible = false; 709 WindowState = FormWindowState.Normal;
Line 700... Line 710...
700 } 710 }
701   711  
702 private async void LocalBindingsCheckedListBoxItemCheck(object sender, ItemCheckEventArgs e) 712 private async void LocalBindingsCheckedListBoxItemCheck(object sender, ItemCheckEventArgs e)