Beispiel #1
0
 private void lbAddOpers_Click(object sender, EventArgs e)
 {
     FormOpers fo = new FormOpers(0,0);
     if (fo.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         InitOpers();
     }
 }
Beispiel #2
0
 private void dvOpers_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataGridViewRow row = dvOpers.SelectedRows[0];
         int id = Convert.ToInt32(row.Cells["operid"].Value);
         FormOpers fo = new FormOpers(1, id);
         if (fo.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             InitOpers();
         }
     }
     catch { }
 }