private void tSBNewRiver_Click(object sender, EventArgs e)
        {
            NewPostForm newPostForm = new NewPostForm(this.rivers.ToArray());

            newPostForm.GetPost += new EventHandler(this.GetPost);
            int num = (int)newPostForm.ShowDialog();
        }
 private void tSBEditing_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.dgvPostList.SelectedRows.Count < 1)
         {
             return;
         }
         this.post = new PostClass()
         {
             Id            = (int)this.dgvPostList.SelectedRows[0].Cells[0].Value,
             NumberControl = (int)this.dgvPostList.SelectedRows[0].Cells[2].Value,
             NameObject    = (string)this.dgvPostList.SelectedRows[0].Cells[3].Value,
             NameObserve   = (string)this.dgvPostList.SelectedRows[0].Cells[4].Value,
             Distance      = (double)this.dgvPostList.SelectedRows[0].Cells[5].Value,
             Administer    = (string)this.dgvPostList.SelectedRows[0].Cells[6].Value,
             NumberFolds   = (int)this.dgvPostList.SelectedRows[0].Cells[7].Value,
             LocationFold  = (string)this.dgvPostList.SelectedRows[0].Cells[8].Value,
             Vertical      = (string)this.dgvPostList.SelectedRows[0].Cells[9].Value,
             Horizantal    = (string)this.dgvPostList.SelectedRows[0].Cells[10].Value,
             Date          = (int)this.dgvPostList.SelectedRows[0].Cells[11].Value,
             Status        = (byte)1,
             River_Id      = (int)this.dgvPostList.SelectedRows[0].Cells[13].Value
         };
         NewPostForm newPostForm = new NewPostForm(this.post, this.rivers.ToArray());
         newPostForm.GetPost += new EventHandler(this.GetPost);
         int num = (int)newPostForm.ShowDialog();
     }
     catch (Exception ex)
     {
         int num = (int)MessageBox.Show(ex.ToString());
     }
 }