Пример #1
0
        private void configForm_Load(object sender, EventArgs e)
        {
            //load list
            List<SelectableGame> gameList = Settings.LoadGameList();
            LoadList(gameList);

            //load config
            txtExec.Text = Settings.ExecutablePath;
            txtCommandLineOptions.Text = Settings.CommandLineOptions;
            txtMinutes.Value = Settings.Minutes;

            //other
            lvwColumnSorter = new ListViewSorter();
            lstGames.ListViewItemSorter = lvwColumnSorter;
        }
Пример #2
0
        private void configForm_Load(object sender, EventArgs e)
        {
            //load list
            List <SelectableGame> gameList = Settings.LoadGameList();

            LoadList(gameList);

            //load config
            txtExec.Text = Settings.ExecutablePath;
            txtCommandLineOptions.Text = Settings.CommandLineOptions;
            txtMinutes.Value           = Settings.Minutes;

            //other
            lvwColumnSorter             = new ListViewSorter();
            lstGames.ListViewItemSorter = lvwColumnSorter;
        }
Пример #3
0
        public ConfigForm(
            Settings settings,
            LayoutSettings layoutSettings,
            AdvancedSettings advancedSettings,
            GameList gameList,
            GeneralSettingsStore generalSettingsStore,
            GameListStore gameListStore,
            GameListBuilder gameListBuilder,
            ListViewSorter listViewSorter)
        {
            _settings             = settings;
            _layoutSettings       = layoutSettings;
            _advancedSettings     = advancedSettings;
            _generalSettingsStore = generalSettingsStore;
            _gameListStore        = gameListStore;
            _gameList             = gameList;
            _gameListBuilder      = gameListBuilder;
            _lvwColumnSorter      = listViewSorter;

            InitializeComponent();
        }