Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ygglForm yggl = ygglForm.Create();

            yggl.Show();
            yggl.Focus();
        }
Example #2
0
 public static ygglForm Create()
 {
     if (yggl == null)
     {
         yggl = new ygglForm();
     }
     return(yggl);
 }
Example #3
0
        private void 员工管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!FilterClass.yggl())
            {
                MessageBox.Show("无权操作!");
                return;
            }
            ygglForm yggl = ygglForm.Create();

            yggl.Show();
            yggl.Focus();
        }
Example #4
0
 private void ygglForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     yggl = null;
 }