//whisper function private void sendChatMessage(ChatEndpoint target) { string whisper = Microsoft.VisualBasic.Interaction.InputBox("Please enter your message", "Whisper"); if (whisper != null && whisper != "") { string msg = "" + cm.self.hexCode + ":" + WebUtility.UrlEncode(Properties.Settings.Default.Name) + ":" + MulticonMgr.genTick() + ":" + Properties.Settings.Default.Color + ":" + WebUtility.UrlEncode(whisper) + ":Whisper;"; target.MsgStack.Add(new ChatMessage(msg)); } }
// CONSTUCTOR // SEND MESSAGE FUNCTION private void sendChatMessage() { string msg = "" + cm.self.hexCode + ":" + WebUtility.UrlEncode(Properties.Settings.Default.Name) + ":" + MulticonMgr.genTick() + ":" + Properties.Settings.Default.Color + ":" + WebUtility.UrlEncode(chatMsgTb.Text + ";"); foreach (ChatEndpoint n in cm.neighbours.Values) { n.MsgStack.Add(new ChatMessage(msg)); } chatMsgTb.Text = ""; }