示例#1
0
        private void btngetdatacl_Click(object sender, EventArgs e)
        {
            frmNewOrder or = new frmNewOrder();

            if (Application.OpenForms.OfType <frmNewOrder>().Any())
            {
                Application.OpenForms.OfType <frmNewOrder>().First().Close();
                or.Show();
            }
            else
            {
                or.Show();
            }
            frmClientOrderRecord fcr = new frmClientOrderRecord();

            if (Application.OpenForms.OfType <frmClientOrderRecord>().Any())
            {
                Application.OpenForms.OfType <frmClientOrderRecord>().First().Close();
                fcr.Show();
            }
            else
            {
                fcr.Show();
            }
        }
示例#2
0
        private void clientRecordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmClientOrderRecord cr = new frmClientOrderRecord();

            cr.Show();
        }