private void tSBNewRiver_Click(object sender, EventArgs e)
        {
            NewRiverForm newRiverForm = new NewRiverForm();

            newRiverForm.GetRiver += new EventHandler(this.GetRiver);
            int num = (int)newRiverForm.ShowDialog();
        }
 private void tSBEditing_Click(object sender, EventArgs e)
 {
     if (this.dgvRiverList.SelectedRows.Count < 1)
     {
         return;
     }
     try
     {
         this.river = new RiverClass()
         {
             Id     = (int)this.dgvRiverList.SelectedRows[0].Cells[0].Value,
             Name   = (string)this.dgvRiverList.SelectedRows[0].Cells[2].Value,
             Number = (int)this.dgvRiverList.SelectedRows[0].Cells[3].Value,
             Status = (byte)this.dgvRiverList.SelectedRows[0].Cells[4].Value
         };
         NewRiverForm newRiverForm = new NewRiverForm(this.river);
         newRiverForm.GetRiver += new EventHandler(this.GetRiver);
         int num = (int)newRiverForm.ShowDialog();
         this.river = (RiverClass)null;
     }
     catch (Exception ex)
     {
         int num = (int)MessageBox.Show(ex.Message);
     }
 }