コード例 #1
0
        private void panel1_Click(object sender, EventArgs e)
        {
            //Bring To Front (Child Form)
            //Nikko Melgar
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(Banks))
                {
                    form.Activate();
                    return;
                }
            }

            Banks    frm  = new Banks();
            MainForm main = new MainForm();

            frm.Show();
            frm.MdiParent = main;
        }
コード例 #2
0
        private void button11_Click(object sender, EventArgs e)
        {
            //Hide sub menu filemaintenance
            panelFileMaintenanceSub.Visible = false;

            //controls
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(Banks))
                {
                    form.Activate();
                    return;
                }
            }

            Banks frm = new Banks();

            frm.Show();
            frm.MdiParent = this;
            frm.cleartxtField();
        }
コード例 #3
0
ファイル: Main.cs プロジェクト: shindouj/Biznesmen
 private void toolStripButton4_Click(object sender, EventArgs e)
 {
     Banks banks = new Banks();
     DialogResult result = banks.ShowDialog();
     if(result == DialogResult.OK)
     {
         cashStateLabel.Text = game.cash + "$";
         bankCashLabel.Text = Banks.bankMoney.Sum() + "$";
     }
 }