コード例 #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();
     }
 }