Esempio n. 1
0
        /// <summary>
        /// Loads and enables Enhanced Skirmish based on the settings object value.
        /// </summary>
        private void LoadEnhancedSkirmish()
        {
            SettingsObject settings = Grabber.Settings.Get();

            enhancedSkirmish.RefreshCCDirectory();
            enhancedSkirmish.Initialize();
        }
        public SettingsWindow(SettingsObject settingsObject)
        {
            InitializeComponent();
            this.settingsObject = settingsObject;

            installDirectoryBox.Text = settingsObject.CCInstallDirectory;
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes the window size from the settings object.
        /// </summary>
        private void InitWindowSize()
        {
            SettingsObject sets = Grabber.Settings.Get();

            this.Width  = sets.WindowWidth;
            this.Height = sets.WindowHeight;
        }
        public SettingsWindow(SettingsObject settingsObject)
        {
            InitializeComponent();
            this.settingsObject = settingsObject;

            installDirectoryBox.Text = settingsObject.CCInstallDirectory;
        }