Exemplo n.º 1
0
        public StartWindow()
        {
            _windowSizeFile = System.IO.Path.Combine(App.AppDataFolder, "windowSize.cfg");

            DataContext = this;
            this.Loaded += new RoutedEventHandler(StartWindow_Loaded);

            _envManager = new EnvironmentConfigManager(this);
            _serviceManager = new ServiceManager(this);
            _bannedProcManager = new BannedProcessManager();

            _timer = new DispatcherTimer(DispatcherPriority.ApplicationIdle);
            _timer.Interval = TimeSpan.FromSeconds(60);
            _timer.Tick += new EventHandler(_timer_Tick);
            _timer.Start();

            missionAccomplishedSize = Int32.Parse(Properties.Resources.ImageSize);

            InitializeComponent();
            loadWindowSize();
            setupImageCache();
            setupConfigurationButtons();
            getServerStatuses();

            this.SizeChanged += new SizeChangedEventHandler(StartWindow_SizeChanged);

            LogoButton.Click += LogoButtonClick;
            UpdatesAvailableButton.Click += LogoButtonClick;
        }
Exemplo n.º 2
0
        public StartWindow()
        {
            DataContext = this;
            this.Loaded += new RoutedEventHandler(StartWindow_Loaded);

            _envManager = new EnvironmentConfigManager(this);
            _serviceManager = new ServiceManager(this);
            _bannedProcManager = new BannedProcessManager();

            _timer = new DispatcherTimer(DispatcherPriority.ApplicationIdle);
            _timer.Interval = TimeSpan.FromSeconds(60);
            _timer.Tick += new EventHandler(_timer_Tick);
            _timer.Start();

            missionAccomplishedSize = Int32.Parse(Properties.Resources.ImageSize);

            InitializeComponent();
            setupImageCache();
            setupConfigurationButtons();
            getServerStatuses();
        }