Ejemplo n.º 1
0
 private void editBtn_Click(object sender, EventArgs e)
 {
     if (this.linesGrid.SelectedRows.Count > 0)
     {
         var lineId = (int)this.linesGrid.SelectedRows[0].Cells["ID"].Value;
         var editLineForm = new EditLineForm(this, lineId);
         editLineForm.ShowDialog(this);
     }
 }
Ejemplo n.º 2
0
 private void addBtn_Click(object sender, EventArgs e)
 {
     var editLineForm = new EditLineForm(this);
     editLineForm.ShowDialog(this);
 }