private void Desk_EvClosed(object sender, ChatDeskEventArgs e) { DispatcherEx.xInvoke(() => { Close(); }); }
private void Desk_EvHide(object sender, ChatDeskEventArgs e) { DispatcherEx.xInvoke(() => { Hide(); Sleep(); }); }
private void Desk_EvShow(object sender, ChatDeskEventArgs e) { DispatcherEx.xInvoke(() => { if (!Desk.IsMinimized && Desk.IsVisible && base.Visibility > Visibility.Visible) { ShowAssist(); } }); }
private void Desk_EvGetForeground(object sender, ChatDeskEventArgs e) { DispatcherEx.xInvoke(() => { ShowAssist(); DelayCaller foregroundTrackDelayCaller = _foregroundTrackDelayCaller; if (foregroundTrackDelayCaller != null) { foregroundTrackDelayCaller.CallAfterDelay(); } }); }
private void Desk_EvMaximize(object sender, ChatDeskEventArgs e) { Desk.ShowNormal(); DispatcherEx.xInvoke(() => { XYRatio toLogicalRatio = ToLogicalRatio; double maxW = SystemParameters.WorkArea.Width - (double)WaParams.GetRightPanelWidth(Desk.Seller) - (double)12f; int w = (int)(maxW / toLogicalRatio.XRatio); double maxH = SystemParameters.WorkArea.Height - (double)WaParams.GetBottomPanelHeight(Desk.Seller) - (double)12f; int h = (int)(maxH / toLogicalRatio.YRatio); Desk.SetRect(6, 6, w, h); }); Track(false, false); }
private void Desk_EvMinimize(object sender, ChatDeskEventArgs e) { DispatcherEx.xInvoke(() => { try { Hide(); Sleep(); } catch (Exception ex) { Log.Exception(ex); } }); }
private void Editor_EvEditorTextChanged(object sender, ChatDeskEventArgs e) { Task.Factory.StartNew(OnEditorTextChangedAsync, TaskCreationOptions.LongRunning); }
private void Desk_EvNormalize(object sender, ChatDeskEventArgs e) { WakeUp(); Track(false, false); }
private void Desk_EvMoved(object sender, ChatDeskEventArgs e) { Track(false, true); }
private void Desk_EvResized(object sender, ChatDeskEventArgs e) { Track(false, false); }
private void Desk_EvLostForeground(object sender, ChatDeskEventArgs e) { }