Esempio n. 1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         VorzeHelper.stopPlayer();
         saveSettings();
     }
     catch (Exception)
     {
     }
 }
Esempio n. 2
0
 private void cbMonitoringEnabled_CheckedChanged(object sender, EventArgs e)
 {
     if (cbMonitoringEnabled.Checked)
     {
         VorzeHelper.ToggleVorze(true);
         VorzeHelper.startPlayer();
     }
     else
     {
         VorzeHelper.ToggleVorze(false);
         VorzeHelper.stopPlayer();
     }
     saveSettings();
 }
Esempio n. 3
0
        public Form1()
        {
            InitializeComponent();

            // init players and dropdown
            InitPlayerSelect();

            // Start log monitoring and cleanup old log file
            if (File.Exists("debug.log"))
            {
                File.Delete("debug.log");
            }

            // Init Vorze hardware
            VorzeHelper.Init(this);
        }