コード例 #1
0
ファイル: frmCheckIn.cs プロジェクト: phongkeoyb/QLKS
        private void gvThuePhong_DoubleClick(object sender, EventArgs e)
        {
            string     mathuephong = gvThuePhong.GetRowCellValue(gvThuePhong.FocusedRowHandle, "Mã TP").ToString();
            frmService f           = new frmService(mathuephong);

            f.MdiParent = frmHome.ActiveForm;
            f.Show();
        }
コード例 #2
0
        private void btnSuDungDichVu_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(frmService));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmService f = new frmService();
                IsMdiContainer = true;
                f.MdiParent    = this;
                f.Show();
            }
        }