日期:2014-05-18 浏览次数:20419 次
SmartTimers smartTimers = new SmartTimers(); smartTimers.MdiParent = this; smartTimers.Show(); //SmartTimers窗口的 private void SmartTimers_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; this.WindowState = FormWindowState.Minimized; }
SmartTimers smartTimers = new SmartTimers(); smartTimers.MdiParent = this; smartTimers.Show(); //SmartTimers窗口的 private void SmartTimers_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = Common.IsMDIExit;//Common.IsMDIExit为静态公共变量 this.WindowState = FormWindowState.Minimized; }