Esempio n. 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            ComputerManyEntityForm Computer = new ComputerManyEntityForm((DataTable)this.ComputerGridView.DataSource);

            if (Computer.ShowDialog() == DialogResult.OK)
            {
                this.RefreshButton.PerformClick();
            }
        }
Esempio n. 2
0
        private void EditAllButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.ComputerBLL.BLLComputer_TKeys ComputerKey = new HPS.BLL.ComputerBLL.BLLComputer_TKeys();
            ComputerKey.ComputerID_int = (int?)this.ComputerGridView.CurrentRow.Cells[colComputerID_int.Name].Value;
            ComputerManyEntityForm computer = new ComputerManyEntityForm(BaseEntityParentForm.enmState.Edit, (DataTable)this.ComputerGridView.DataSource, ComputerKey);

            computer._MacAddress_nvc = ComputerGridView.CurrentRow.Cells[colMacAddress_nvc.Name].Value.ToString();
            if (computer.ShowDialog() == DialogResult.OK)
            {
                this.RefreshButton.PerformClick();
            }
        }