Ejemplo n.º 1
0
        private void Added(object sender, EventArgs e)
        {
            AddEnclosures addEnclosures = new AddEnclosures();

            addEnclosures.Owner = this;
            addEnclosures.ShowDialog();
        }
Ejemplo n.º 2
0
 private void Updatet(object sender, EventArgs e)
 {
     if (DG.SelectedRows.Count == 1)
     {
         DataRow       Row           = ((DataRowView)DG.SelectedRows[0].DataBoundItem).Row;
         MEnclosures   mEnclosures   = new MEnclosures((string)Row[0], (string)Row[1], (string)Row[2], (string)Row[3], (string)Row[4]);
         AddEnclosures addEnclosures = new AddEnclosures(mEnclosures);
         addEnclosures.Owner = this;
         addEnclosures.ShowDialog();
     }
     else
     {
         MessageBox.Show("Для изменения выделите только одну строку!");
     }
 }