private void ShowEditorErrorTipIfNeed(string tip) { if (this._ShowEditorErrorTipTime.xIsTimeElapseMoreThanSecond(10)) { try { this._ShowEditorErrorTipTime = DateTime.Now; WndAssist assistWindow = this._desk.AssistWindow; if (assistWindow != null) { BottomPanel.Tipper theTipper = assistWindow.ctlBottomPanel.TheTipper; if (theTipper != null) { theTipper.ShowTip(tip); } } Log.Info(string.Format("ShowEditorError:IsGroupChat={0},IsSingleChat={1}", this._desk.IsGroupChat, this._desk.IsSingleChat)); } catch (Exception e) { Log.Exception(e); } } }
public void Init(WndAssist wnd) { _desk = wnd.Desk; _tipper = wnd.ctlBottomPanel.TheTipper; _wnd = wnd; }