示例#1
0
        private void btn_frm_NGOAI_NGU_Click(object sender, EventArgs e)
        {
            frm_NGOAI_NGU_EDIT frm_NN = new frm_NGOAI_NGU_EDIT(null, true);

            frm_NN.ShowDialog();
            Init_Reference_Data();
        }
示例#2
0
        void edit_record(object sender, EventArgs e)
        {
            DataRowView current_row = (DataRowView)gv_DATA.GetFocusedRow();

            if (current_row == null)
            {
                return;
            }
            string row_code = current_row.Row.ItemArray[0].ToString();
            //frm_CHUC_VU_EDIT frm_edit = new frm_CHUC_VU_EDIT(row_code);
            frm_NGOAI_NGU_EDIT frm_edit = new frm_NGOAI_NGU_EDIT(row_code);

            if (frm_edit.ShowDialog() == DialogResult.OK)
            {
                dg_DATA.DataSource = DAO_DIC_LANGUAGE.Get_Data();
                int rowHandle = gv_DATA.LocateByValue(column_code, row_code);
                if (rowHandle != DevExpress.XtraGrid.GridControl.InvalidRowHandle)
                {
                    gv_DATA.FocusedRowHandle = rowHandle;
                }
            }
        }
示例#3
0
        void insert_record(object sender, EventArgs e)
        {
            frm_NGOAI_NGU_EDIT frm_edit = new frm_NGOAI_NGU_EDIT(this, true);

            frm_edit.ShowDialog();
        }