コード例 #1
0
ファイル: MainForm.cs プロジェクト: jack06215/tmc
 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
 }
コード例 #2
0
ファイル: EmergencyStopMonitor.cs プロジェクト: jack06215/tmc
        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();
        }
コード例 #3
0
ファイル: DebugOverrides.cs プロジェクト: jack06215/tmc
 public void Initialize(ScadaEngine engine)
 {
     lvBinding.DataSource = engine.TabletMagazine.Slots;
     dgvTabMag.DataSource = lvBinding;
 }
コード例 #4
0
ファイル: controlPage.cs プロジェクト: jack06215/tmc
 /// <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;
 }