void Browser_GotFocus(object sender, EventArgs e) { GUI.ShellBrowser tmp = sender as GUI.ShellBrowser; if (tmp != null) { m_PreviousFocus = tmp; } }
public Form_TotalCommander() { InitializeComponent(); GUI.ShellBrowser.SmallImageList = smallImgList; shellBrowserLeft.Init(); shellBrowserRight.Init(); shellBrowserLeft.RecvFocus += Browser_GotFocus; shellBrowserRight.RecvFocus += Browser_GotFocus; m_PreviousFocus = shellBrowserLeft; Init(); }