Exemplo n.º 1
0
        public DummyTestForm(User currentUser, PlcActions plcActions)
        {
            InitializeComponent();

            this.currentUser = currentUser;

            this.plcActions = plcActions;

            LoadPrograms();

            UpdateUI();

            System.Threading.Timer stateTimer = new System.Threading.Timer(new TimerCallback(TickTimer), null, 1000, 1000);

            AddLog("Dummy testing: Access");
        }
Exemplo n.º 2
0
        public DebugForm(User currentUser, PlcActions plcActions, MainForm mainForm)
        {
            InitializeComponent();

            this.currentUser = currentUser;

            this.mainForm = mainForm;

            this.plcActions = plcActions;

            System.Timers.Timer timer = new System.Timers.Timer();
            timer.Interval = 1000;
            timer.Elapsed += Timer_Elapsed;
            timer.Start();

            LoadPrograms();

            AddLog("Debug menu: Access");
        }