public ChatForm(GGUserInfo fromUser, GGUserInfo toUser) { InitializeComponent();//选择好友私聊 Control.CheckForIllegalCrossThreadCalls = false; this.showMsgDelMethod = this.ShowMsgDelMethodImpl; SingleUtils.fromUser = fromUser; SingleUtils.toUser = toUser; toInfo.toId = toUser.userId; toInfo.toUser = SingleUtils.toUser; string chatFormKey = GGUserUtils.GetChatFormKey(SingleUtils.fromUser, SingleUtils.toUser); SingleUtils.AddChatForm(chatFormKey, this); this.Size = new System.Drawing.Size(400, 400); this.Tag = chatFormKey; this.Text = "你" + GGUserUtils.ShowNickAndId(SingleUtils.fromUser) + "正在和" + GGUserUtils.ShowNickAndId(SingleUtils.toUser) + "聊天 chatFormKey=" + chatFormKey; //表情选择面板 SingleUtils.emojiForm.VisibleChanged += new EventHandler(this.GetEmoji); SingleUtils.emojiForm.Show(); SingleUtils.emojiForm.WindowState = FormWindowState.Minimized; SingleUtils.emojiForm.Visible = false; }
string IIsModeCharMatcher.RemoveFrom(string sequence) { return(SingleUtils.RemoveFrom(sequence, Options)); }
int IIsModeCharMatcher.CountIn(string sequence) { return(SingleUtils.CountIn(sequence, Options.GetSingleChar())); }
int IIsModeCharMatcher.IndexIn(string sequence, int startIndex) { return(SingleUtils.IndexIn(sequence, Options.GetSingleChar(), startIndex)); }
bool IIsModeCharMatcher.MatchesNoneOf(string sequence) { return(!SingleUtils.MatchesAnyOf(sequence, Options)); }
bool IIsModeCharMatcher.MatchesAllOf(string sequence) { return(SingleUtils.MatchesAllOf(sequence, Options)); }
string IIsModeCharMatcher.CollapseFrom(string sequence, char replacement) { return(SingleUtils.CollapseFrom(sequence, replacement, Options)); }
string IIsModeCharMatcher.TrimTrailingFrom(string sequence) { return(SingleUtils.TrimEndFrom(sequence, Options)); }
string IIsModeCharMatcher.TrimLeadingForm(string sequence) { return(SingleUtils.TrimStartFrom(sequence, Options)); }
string IIsModeCharMatcher.ReplaceFrom(string sequence, string replacement) { return(SingleUtils.ReplaceFrom(sequence, replacement, Options)); }
string IIsModeCharMatcher.ReplaceFrom(string sequence, char replacement) { return(SingleUtils.ReplaceFrom(sequence, $"{replacement}", Options)); }
int IIsNotModeCharMatcher.LastIndexIn(string sequence) { return(SingleUtils.LastIndexIn(sequence, Options.GetSingleChar())); }
string IIsNotModeCharMatcher.TrimFrom(string sequence) { return(SingleUtils.TrimFrom(sequence, Options)); }
string IIsNotModeCharMatcher.RetainFrom(string sequence) { return(SingleUtils.RemoveFrom(sequence, Options, true)); }