public MainForm() { InitializeComponent(); Logger.Instance.Strategy = LogStrategy.All; this.createUserButton.Hide(); _scadaEngine = new ScadaEngine(); this.InitializeAll(); //Only proceed if SCADA is initialised _webApiClient = new WebApiClient("http://192.168.1.102:8080/"); //disableUserControl(); // Default on startup - user must login first }
public EmergencyStopMonitor(ScadaEngine engine, long updateTimeMsec = 2000) { this._engine = engine; _timer = new Timer(updateTimeMsec); _timer.Elapsed += Update; _plc = _engine.ClusterConfig.Plcs["MainPlc"] as IPlc; this.IsEnabled = false; if (_plc == null) { throw new ArgumentException("Could not retrieve a Plc from ClusterConfig"); } _allHardware = _engine.ClusterConfig.GetAllHardware(); }
public void Initialize(ScadaEngine engine) { lvBinding.DataSource = engine.TabletMagazine.Slots; dgvTabMag.DataSource = lvBinding; }
/// <summary> /// Called by main form to pass in access to the scada engine /// </summary> /// <param name="scadaEngine"></param> public void InitialiseScadaEngine(ScadaEngine scadaEngine) { this._scadaEngine = scadaEngine; }