Ejemplo n.º 1
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            oper = 1;
            FrmDictDialog frm = new FrmDictDialog(ReLoad, cmb_dictype.Text);

            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btn_modi_Click(object sender, EventArgs e)
        {
            oper = 2;
            int row = dgv.SelectedCells[0].RowIndex;
            int id  = (int)dgv["id", row].Value;

            Sysdic sysdic = sysdics.First(s => s.id == id);

            if (sysdic != null)
            {
                FrmDictDialog frm = new FrmDictDialog(ReLoad, sysdic);
                frm.Show();
            }
        }