コード例 #1
0
        private void customerToolToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MainCustomer frmMainCust = new MainCustomer();

            frmMainCust.MdiParent = this;
            frmMainCust.Show();
        }
コード例 #2
0
        private void ServiceSubscriptions_Closing(object sender, FormClosingEventArgs e)
        {
            //get a reference of Main form in order to execute necessary code that will refresh the controls
            MainCustomer mainFrm = (MainCustomer)Application.OpenForms["MainCustomer"];

            if (mainFrm != null)
            {
                mainFrm.refreshDropDowns2();
            }
        }