public static glyszForm Create() { if (glysz == null) { glysz = new glyszForm(); } return(glysz); }
//显示管理员设置窗口 private void 管理员设置ToolStripMenuItem_Click(object sender, EventArgs e) { if (!FilterClass.glysz()) { MessageBox.Show("无权操作!"); return; } glyszForm glygl = glyszForm.Create(); glygl.Show(); glygl.Focus(); }
private void glyszForm_FormClosed(object sender, FormClosedEventArgs e) { glysz = null; }