Пример #1
0
 private void tmrUpdate_Tick(object sender, EventArgs e)
 {
     using (var mainForm = new frmAlarmList())
     {
         tblAllAlarms           = mainForm.logData();
         dgvAlarmLog.DataSource = tblAllAlarms;
     }
 }
Пример #2
0
 public frmAlarmLog()
 {
     InitializeComponent();
     setupDGV();
     using (var mainForm = new frmAlarmList())
     {
         tblAllAlarms           = mainForm.logData();
         dgvAlarmLog.DataSource = tblAllAlarms;
         tmrUpdate.Start();
     }
 }