public ComputerForm() { InitializeComponent(); _computerList = new DataTable(); Control.CheckForIllegalCrossThreadCalls = false; _computerBl = new BusinessComputer(); }
private void ShutDownComputer(object sender, EventArgs e) { try { _computerName = dataGridView1.SelectedCells[1].Value.ToString(); _computerBl = new BusinessComputer(); _computerBl.ShutDownComputer(_computerName); } catch (ArgumentOutOfRangeException) { MessageBox.Show("Lütfen tüm satırı seçiniz", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
// Getting Datagridview Rows data from DataTableFill class public ComputerForm() { InitializeComponent(); computerBl = new BusinessComputer(); }