private void button2_Click(object sender, EventArgs e) { qtForm qt = qtForm.Create(); qt.Show(); qt.Focus(); }
public static qtForm Create() { if (qt == null) { qt = new qtForm(); } return(qt); }
private void 其他ToolStripMenuItem_Click(object sender, EventArgs e) { if (!FilterClass.qtfw()) { MessageBox.Show("无权操作!"); return; } qtForm qt = qtForm.Create(); qt.Show(); qt.Focus(); }
private void qtForm_FormClosed(object sender, FormClosedEventArgs e) { qt = null; }