Exemplo n.º 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;
        }
Exemplo n.º 2
0
        private void barButtonItem_ThemDuAn_ItemClick(object sender, ItemClickEventArgs e)
        {
            F_Main_ThemDuAn frm = new F_Main_ThemDuAn();

            frm.Show();
        }