Beispiel #1
0
        public Configure(LoaderEngine currentEngine)
        {
            if (currentEngine == null)
            {
                throw new ArgumentNullException("currentEngine");
            }

            engine = currentEngine;
            InitializeComponent();
        }
        public MainWindow()
        {
            try
            {
                // Setup checker.
                time.Elapsed += new ElapsedEventHandler(DisplayTimeEvent);
                time.Interval = Constants.TimerTime;
                time.Start();

                InitializeComponent();
                engine = new LoaderEngine();
                engine.LoadSettings();
                UpdateVersionStatus();

                CheckDisclaimer();
            }
            catch (Exception e)
            {
                MessageBox.Show(string.Format("Error: \n {0}", e.Message), "Error");
                throw e;
            }
        }