private void RdpClientWindow_Shown(object sender, EventArgs e) { OnFormShown?.Invoke(this, e, ListIndex, Handle); // stretch RD view ToolbarButtons_Click(m_FTS_Strech, null); }
private void TrayAwareForm_Resize(object sender, EventArgs e) { if (MinimizeToTray && PrevWindowState != WindowState && WindowState == FormWindowState.Minimized) { ToTray(); } if (PrevWindowState != WindowState) { Logger.Trace("State changed: {0} -> {1}", PrevWindowState, WindowState); if (WindowState == FormWindowState.Minimized) { OnFormHidden?.Invoke(this, EventArgs.Empty); } else if (PrevWindowState == FormWindowState.Minimized) { OnFormShown?.Invoke(this, EventArgs.Empty); } } PrevWindowState = WindowState; }