Beispiel #1
0
        private void TeachModelBtn_Click(object sender, EventArgs e)
        {
            HealthSubject hs = new HealthSubject();

            hs.SetValue(100);
            pi.TeachModel(comboBoxModelSelection.Text, ConstantValues.KEYBOARD_DATA_FILEPATH);
            textBox1.AppendText("Started running python scripts." + Environment.NewLine);
        }
Beispiel #2
0
        public Emlin()
        {
            _proc = HookCallback;

            _hookID = SetHook(_proc);


            InitializeComponent();

            CustomTimer timer = new CustomTimer(ConstantValues.LENGTH_OF_SESSION_IN_MILLIS);

            timer.Elapsed  += TimerCountdown;
            timer.AutoReset = false;
            dataFormatter   = new DataFormatter(timer);

#if DEBUG
            devWindow.Show();
#endif
            health = new HealthSubject();
            healthGraphView.SetHealthSubject(health);

            health.Attach(healthGraphView);
            health.SetValue(ConstantValues.DEFAULT_HEALTH_VALUE);
        }