Exemple #1
0
        private VlcMonitor(Label statusLabel, ShutdauwnForm shutdawunForm)
        {
            this.monitorRunning = true;
            this.statusLabel    = statusLabel;
            this.vlcStatus      = VlcStatus.MediaStopped;
            VlcMonitor.instance = this;
            this.shutdawunForm  = shutdawunForm;

            this.monitorVlc(statusLabel);
        }
Exemple #2
0
        private VlcMonitor(Label statusLabel, ShutdauwnForm shutdawunForm)
        {
            this.monitorRunning = true;
            this.statusLabel = statusLabel;
            this.vlcStatus = VlcStatus.MediaStopped;
            VlcMonitor.instance = this;
            this.shutdawunForm = shutdawunForm;

            this.monitorVlc(statusLabel);
        }
Exemple #3
0
        private ShutDownTimer(Label statusLabel, DateTime shutdownDateTime, ShutdauwnForm shutdawunForm)
        {
            ShutDownTimer.instance = this;

            this.shutdownDateTime = shutdownDateTime;
            this.statusLabel      = statusLabel;
            this.timerRunning     = true;
            this.shutdawunForm    = shutdawunForm;

            this.timer();
        }
        private ShutDownTimer(Label statusLabel, DateTime shutdownDateTime, ShutdauwnForm shutdawunForm)
        {
            ShutDownTimer.instance = this;

            this.shutdownDateTime = shutdownDateTime;
            this.statusLabel = statusLabel;
            this.timerRunning = true;
            this.shutdawunForm = shutdawunForm;

            this.timer();
        }
Exemple #5
0
        public ShutdauwnForm()
        {
            ShutdauwnForm.instance = this;
            InitializeComponent();

            this.minutesUpDown.Value            = Properties.Settings.Default.minutesUpDown;
            this.hoursUpDown.Value              = Properties.Settings.Default.hoursUpDown;
            this.minimizeCheckBox.Checked       = Properties.Settings.Default.minimizeToTray;
            this.philipsHueIpTextBox.Text       = Properties.Settings.Default.philipsHueIp;
            this.philipsHueUsernameTextBox.Text = Properties.Settings.Default.philipsHueUsername;
            this.turnOffCheckBox.Checked        = Properties.Settings.Default.turnOffLightsOnShutdown;
        }
        public ShutdauwnForm()
        {
            ShutdauwnForm.instance = this;
            InitializeComponent();

            this.minutesUpDown.Value = Properties.Settings.Default.minutesUpDown;
            this.hoursUpDown.Value = Properties.Settings.Default.hoursUpDown;
            this.minimizeCheckBox.Checked = Properties.Settings.Default.minimizeToTray;
            this.philipsHueIpTextBox.Text = Properties.Settings.Default.philipsHueIp;
            this.philipsHueUsernameTextBox.Text = Properties.Settings.Default.philipsHueUsername;
            this.turnOffCheckBox.Checked = Properties.Settings.Default.turnOffLightsOnShutdown;
        }
Exemple #7
0
        public static void StartTimer(Label statusLabel, ShutdauwnForm shutdawunForm, int minutes, int hours)
        {
            TimeSpan duration = new TimeSpan(hours, minutes, 0);

            new Task(() => new ShutDownTimer(statusLabel, DateTime.Now + duration, shutdawunForm)).Start();
        }
Exemple #8
0
 public static void StartMonitoring(Label statusLabel, ShutdauwnForm shutdauwnForm)
 {
     // Start a thread that will handle the monitoring
     new Task(() => new VlcMonitor(statusLabel, shutdauwnForm)).Start();
 }
        public static void StartTimer(Label statusLabel, ShutdauwnForm shutdawunForm, int minutes, int hours)
        {
            TimeSpan duration = new TimeSpan(hours, minutes, 0);

            new Task(() => new ShutDownTimer(statusLabel, DateTime.Now + duration, shutdawunForm)).Start();
        }
Exemple #10
0
 public static void StartMonitoring(Label statusLabel, ShutdauwnForm shutdauwnForm)
 {
     // Start a thread that will handle the monitoring
     new Task(() => new VlcMonitor(statusLabel, shutdauwnForm)).Start();
 }