Exemplo n.º 1
0
 private void tmrUpdate_Tick(object sender, EventArgs e)
 {
     using (var mainForm = new frmAlarmList())
     {
         tblAllAlarms           = mainForm.logData();
         dgvAlarmLog.DataSource = tblAllAlarms;
     }
 }
Exemplo n.º 2
0
 public frmAlarmLog()
 {
     InitializeComponent();
     setupDGV();
     using (var mainForm = new frmAlarmList())
     {
         tblAllAlarms           = mainForm.logData();
         dgvAlarmLog.DataSource = tblAllAlarms;
         tmrUpdate.Start();
     }
 }