コード例 #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
ファイル: MainForm.cs プロジェクト: noseii/powerscada2011
        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();

            }
        }