예제 #1
0
        private void toolStripMenuItem_Modify_Click(object sender, EventArgs e)
        {
            if (nguoi.Cap > 1)
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("Bạn không đủ quyền !");
                return;
            }

            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;

            int rowSel = -1;

            int[] selectedRows = gridView1.GetSelectedRows();
            foreach (int r in selectedRows)
            {
                rowSel = r;
            }

            F_Main_ThemDuAn frm = new F_Main_ThemDuAn(this, table_DSTenDuAn.Rows[rowSel].ItemArray[1].ToString());

            frm.Show();

            Cursor = Cursors.Default;
        }
예제 #2
0
파일: F_Main.cs 프로젝트: taoqn/PMQLDD
        private void barButtonItem_ThemDuAn_ItemClick(object sender, ItemClickEventArgs e)
        {
            F_Main_ThemDuAn frm = new F_Main_ThemDuAn();

            frm.Show();
        }