Example #1
0
 public ComputerForm()
 {
     InitializeComponent();
     _computerList = new DataTable();
     Control.CheckForIllegalCrossThreadCalls = false;
     _computerBl = new BusinessComputer();
 }
Example #2
0
        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);
            }
        }
Example #3
0
        // Getting Datagridview Rows data from DataTableFill class

        public ComputerForm()
        {
            InitializeComponent();
            computerBl = new BusinessComputer();
        }