WingMan
/trunk/WingMan/Properties/Strings.Designer.cs |
@@ -241,6 +241,15 @@ |
} |
|
/// <summary> |
/// Looks up a localized string similar to Lobby message. |
/// </summary> |
internal static string Lobby_message { |
get { |
return ResourceManager.GetString("Lobby_message", resourceCulture); |
} |
} |
|
/// <summary> |
/// Looks up a localized string similar to Matched remote key binding. |
/// </summary> |
internal static string Matched_remote_key_binding { |
/trunk/WingMan/Properties/Strings.resx |
@@ -177,6 +177,9 @@ |
<data name="Failed_to_authenticate_with_server" xml:space="preserve"> |
<value>Failed to authenticate with server</value> |
</data> |
<data name="Lobby_message" xml:space="preserve"> |
<value>Lobby message</value> |
</data> |
<data name="Matched_remote_key_binding" xml:space="preserve"> |
<value>Matched remote key binding</value> |
</data> |
/trunk/WingMan/WingManForm.cs |
@@ -303,6 +303,10 @@ |
|
private void OnLobbyMessageReceived(object sender, LobbyMessageReceivedEventArgs e) |
{ |
notifyIcon1.BalloonTipTitle = Properties.Strings.Lobby_message; |
notifyIcon1.BalloonTipText = $"{e.Nick} : {e.Message}{Environment.NewLine}"; |
notifyIcon1.ShowBalloonTip(1000); |
|
LobbyTextBox.AppendText($"{e.Nick} : {e.Message}{Environment.NewLine}"); |
} |
|
@@ -482,6 +486,10 @@ |
|
private async void LobbySayTextBoxKeyDown(object sender, KeyEventArgs e) |
{ |
// Do not send messages if the communication is not running. |
if (!MqttCommunication.Running) |
return; |
|
if (e.KeyCode != Keys.Enter) |
return; |
|
@@ -578,6 +586,10 @@ |
|
private async void LobbySayButtonClick(object sender, EventArgs e) |
{ |
// Do not send messages if the communication is not running. |
if (!MqttCommunication.Running) |
return; |
|
await LobbyMessageSynchronizer.Broadcast(LobbySayTextBox.Text); |
|
LobbySayTextBox.Text = string.Empty; |
@@ -688,7 +700,6 @@ |
if (WindowState == FormWindowState.Minimized) |
{ |
Hide(); |
notifyIcon1.Visible = true; |
} |
} |
|
@@ -696,7 +707,6 @@ |
{ |
Show(); |
WindowState = FormWindowState.Normal; |
notifyIcon1.Visible = false; |
} |
|
private async void LocalBindingsCheckedListBoxItemCheck(object sender, ItemCheckEventArgs e) |