//using (ServiceManeger sg = new ServiceManeger()) { this.dataGridView1[1, 0].Value = "sg.ServiceState"; this.dataGridView1[1, 1].Value = "sg.ListenerState"; }
private void Form1_Load(object sender, EventArgs e) { dataGridView1.ColumnCount = 3; dataGridView1.RowCount = 3; stateCallback = new System.Threading.TimerCallback(WorkerStateGet); timer = new System.Threading.Timer(stateCallback, null, 15000, 15000); }