Exemplo n.º 1
0
 public static spform CreateForm()
 {
     if (_danli == null)
     {
         _danli = new spform();
     }
     return(_danli);
 }
Exemplo n.º 2
0
        private void toolStripButton6_Click(object sender, EventArgs e)
        {
            if (!FilterClass.spgl())
            {
                MessageBox.Show("无权操作!");
                return;
            }
            spform shangpinguanli = spform.CreateForm();

            shangpinguanli.MdiParent   = this;
            shangpinguanli.Parent      = panel3;
            shangpinguanli.WindowState = FormWindowState.Maximized;
            shangpinguanli.Show();
        }
Exemplo n.º 3
0
 private void spform_FormClosing(object sender, FormClosingEventArgs e)
 {
     _danli = null;
 }