Exemplo n.º 1
0
 private void editBtn_Click(object sender, EventArgs e)
 {
     if (this.stationsGrid.SelectedRows.Count > 0)
     {
         var stationId = (int)this.stationsGrid.SelectedRows[0].Cells["ID"].Value;
         var editStationForm = new EditStationForm(this, stationId);
         editStationForm.ShowDialog(this);
     }
 }
Exemplo n.º 2
0
 private void addBtn_Click(object sender, EventArgs e)
 {
     var editStationForm = new EditStationForm(this);
     editStationForm.ShowDialog(this);
 }