コード例 #1
0
        private void btnThemSP_Click(object sender, EventArgs e)
        {
            Form frm = ktraform(typeof(FromHangHoa));

            if (frm == null)
            {
                FromHangHoa f = new FromHangHoa();
                f.Show();
            }
            else
            {
                frm.Activate();
            }
        }
コード例 #2
0
        private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = ktraform(typeof(FromHangHoa));

            if (frm == null)
            {
                FromHangHoa f = new FromHangHoa();
                f.MdiParent = this;
                f.Show();
            }
            else
            {
                frm.Activate();
            }
        }