private static void FwMainWindowActivated(object sender, EventArgs e) { if (sender is IFwMainWnd) s_activeMainWnd = sender as IFwMainWnd; }