private async void SendLabelControl_Click(object sender, System.EventArgs e) { if (!this.InputControl.ChatBoxControl.Enabled || this.InputControl.ChatBoxControl.Text.Length == 0) { return; } StrongString str = this.InputControl.ChatBoxControl.Text; // make sure that the context of the message, has more than 2 chars. // if the chatbox control is not enabled, then it means this channel // is not available yet, so you should not send the message. if (this.InputControl.ChatBoxControl.Text.Length < MINIMUM_LENGTH) { str = str.Append(INSIDER, MINIMUM_LENGTH - this.InputControl.ChatBoxControl.Text.Length + 1); } this.InputControl.SendLabelControl.Enabled = false; this.InputControl.ChatBoxControl.Clear(); await this.ChatBackgroundLabel.SendMessage(str); this.InputControl.SendLabelControl.Enabled = true; this.InputControl.SendLabelControl.HasMouseClickedOnce = false; }