private void DecryptDict(dict dict_mes) { if (dict_mes.ContainsKey("content")) { dict_mes["content"] = RsaMaker.DecodeOrNull(dict_mes["content"]); } if (dict_mes.ContainsKey("ftpusername")) { dict_mes["ftpusername"] = RsaMaker.DecodeOrNull(dict_mes["ftpusername"]); } if (dict_mes.ContainsKey("ftppassword")) { dict_mes["ftppassword"] = RsaMaker.DecodeOrNull(dict_mes["ftppassword"]); } }
private void Print(dict dict_dict) { //if (dict_dict["username"] == this.userName) // return; if (dict_dict["type"] == "TEXT_MES") { if (dict_dict.ContainsKey("content")) { string Out = ""; Out += (dict_dict["localname"] + " " + dict_dict["username"] + " " + dict_dict["time"] + "\n"); Out += (dict_dict["content"] + "\n"); if (dict_dict["username"] != this.userName) { this.Invoke(() => { this._chat_box_tool.Receive("http://www.jf258.com/uploads/2013-07-21/073810328.jpg", dict_dict["username"], dict_dict["content"], dict_dict["time"]); }); //this.TextOutput.Text += (dict_dict["localname"] + " " + dict_dict["username"] + " " + dict_dict["time"]+"\n"); //this.TextOutput.Text += (dict_dict["content"]+"\n"); } else if ((dict_dict["username"] == this.userName && dict_dict["localname"] != this.local_name)) { this.Invoke(() => { this._chat_box_tool.Send("http://www.jf258.com/uploads/2013-07-21/073810328.jpg", dict_dict["username"], dict_dict["content"], dict_dict["time"]); }); } } } }