void comunication_EVOEvent(object sender, EVOData e) { if (e._cmdType == CmdType.B2M_CMD_DB_SET) { B2MDbSetting dbset = new B2MDbSetting(e.datain, 0); if (dbset.Result == 1) { MessageBox.Show("DB SET finished"); } else { MessageBox.Show("DB SET Failed!"); } } if (e._cmdType == CmdType.B2M_CMD_CAL) { B2MCalibration dbcal = new B2MCalibration(e.datain, 0); if (dbcal.Result == 1) { if (dbcal.calPartNo <= 0x8d) { System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => { _crtpbValue = 0; this.grd_Process.Visibility = System.Windows.Visibility.Visible; Tmrpb.Start(); })); } } } }
void comunication_EVOEvent(object sender, EVOData e) { if (e._cmdType == CmdType.B2M_CMD_CAL) { B2MCalibration dbcal = new B2MCalibration(e.datain, 0); if (dbcal.Result == 1) { if (dbcal.calPartNo <= 0x8d) { System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => { _crtpbValue = 0; this.grd_Process.Visibility = Visibility.Visible; Tmrpb.Start(); })); } } } }