Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            foreach (string _atitem in Properties.Settings.Default.ActivityTypes)
            {
                cmbActType.Items.Add(_atitem);
            }
            if (Properties.Settings.Default.LastActivityType != "")
            {
                cmbActType.Text = Properties.Settings.Default.LastActivityType;
            }

            LoadSettings();
            HideToTray.Enable(this);
            TTimer.Tick             += TTimer_Tick;
            TTimer.Interval          = new TimeSpan(0, 1, 0);
            ExceprionsTimer.Tick    += ExceprionsTimer_Tick;
            ExceprionsTimer.Interval = new TimeSpan(0, 0, 3);
            ExceprionsTimer.Start();
            CurrentState = Mode.STOPED;
            UpdateButtonsState();
            StartPressHook();
        }