public FirstWindow()
        {
            try
            {
                InitializeComponent();
                loadSettings();

                time = new Time();

                secondWindow = new SecondWindow();
                secondWindow.Show();

                time.timerDecreased += time_timerDecreased;
                time.timerDecreased += secondWindow.timer_timerDecreased;

                this.KeyDown += new KeyEventHandler(MainWindow_KeyDown);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            AppDomain currentDomain = AppDomain.CurrentDomain;
            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
        }
        public MainWindow()
        {
            InitializeComponent();

            time = new Time();

            time.timerDecreased += time_timerDecreased;

            secondWindow = new SecondWindow();
            secondWindow.Show();
            time.timerDecreased += secondWindow.timer_timerDecreased;
        }