예제 #1
0
 private void cihazİzlemEkranıToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Utility.OpenForms.ContainsKey("frmCihazIzlem"))
     {
         frmCihazIzlem f = (frmCihazIzlem)Utility.OpenForms["frmCihazIzlem"];
         f.Show();
     }
     else
     {
         frmCihazIzlem f = new frmCihazIzlem();
         Utility.OpenForms.Add(f.Name, f);
         f.MdiParent = this;
         f.Text      = (sender as ToolStripDropDownItem).Text;
         f.MdiParent = this;
         f.Show();
     }
 }
예제 #2
0
        private void cihazİzlemEkranıToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Utility.OpenForms.ContainsKey("frmCihazIzlem"))
            {
                frmCihazIzlem f = (frmCihazIzlem)Utility.OpenForms["frmCihazIzlem"];
                f.Show();
            }
            else
            {

                frmCihazIzlem f = new frmCihazIzlem();
                Utility.OpenForms.Add(f.Name, f);
                f.MdiParent = this;
                f.Text = (sender as ToolStripDropDownItem).Text;
                f.MdiParent = this;
                f.Show();

            }
        }