private void HideForm() { if (this.WindowState != FormWindowState.Minimized) { this.LoadCtrl.Dispose(); this.LoadCtrl = null; this.Hide(); this.WindowState = FormWindowState.Minimized; //隐藏配置窗体时,重启按键监听 if (this.Config.HasChange) { this.ReStartListner(); } } }
private void menuItemArea_Click(object sender, EventArgs e) { this.LoadCtrl = new ScreenCtrl(); this.ShowForm(); }
private void menuItemSetFolder_Click(object sender, EventArgs e) { this.LoadCtrl = new FolderCtrl(); this.ShowForm(); }