Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ProgramAddModify frm = new ProgramAddModify(this);

            frm.id = 0;
            frm.ShowDialog();
        }
Beispiel #2
0
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (flx.Rows.Count > 1)
     {
         ProgramAddModify frm = new ProgramAddModify(this);
         frm.id = Convert.ToInt32(flx[flx.RowSel, "programID"]);
         frm.ShowDialog();
     }
     else
     {
         Box.warnBox("Please select a row.");
     }
 }