public ConfirmDeleteMachineForm(SelectedMachineForm selectedMachineForm, string machineID)
 {
     _selectedMachineForm = selectedMachineForm;
     _selectedMachineForm.ShowInTaskbar = false;
     _machineID = machineID;
     InitializeComponent();
 }
Пример #2
0
 private void allMachinesTable_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         string dataValue = allMachinesTable.Rows[e.RowIndex].Cells[0].Value.ToString();
         _selectedMachineForm = new SelectedMachineForm(dataValue, this);
         this.Enabled         = false;
         _selectedMachineForm.Show();
     }
 }