public frmViewer() { InitializeComponent(); mViewer = this.MG_Viewer1; MG_CS_BasicViewer.OnStatus += new MG_CS_BasicViewer.OnStatusEventHandler(mViewer_OnStatus); mSetup.LoadAllMachines(System.IO.Directory.GetCurrentDirectory() + "\\Data"); mProcessor.Init(mSetup.Machine); }
public frmViewer() { InitializeComponent(); getSerialPorts(); mViewer = this.MG_Viewer1; mProcessor.OnAddBlock += new clsProcessor.OnAddBlockEventHandler(mProcessor_OnAddBlock); MG_CS_BasicViewer.OnSelection += new MG_CS_BasicViewer.OnSelectionEventHandler(mViewer_OnSelection); MG_CS_BasicViewer.MouseLocation += new MG_CS_BasicViewer.MouseLocationEventHandler(mViewer_MouseLocation); mSetup.MachineActivated += new clsSettings.MachineActivatedEventHandler(mSetup_MachineActivated); mSetup.LoadAllMachines(System.IO.Directory.GetCurrentDirectory() + "\\Data"); mProcessor.Init(mSetup.Machine); cancelled = false; workThread = null; sw = new Stopwatch(); currentMode = eMode.DISCONNECTED; setMode(currentMode); UpdateInterval = 200; // 5 updates sec doStatusUpdates = false; // when enabled feedHold = false; }