public MatchGameDialog(CatalogEditor catalogEditor, Game game)
        {
            InitializeComponent();
            App.SetWindowFont(this);
            this.CatalogEditor = catalogEditor;

            AsyncHelper.RunSync(() => LoadAsync(game));
        }
        public EditGameDialog(CatalogEditor catalogEditor, Game game)
        {
            InitializeComponent();
            App.SetWindowFont(this);

            this.CatalogEditor = catalogEditor;
            this.Game          = game;
            editGameView.Load(catalogEditor, game, true);
        }
Beispiel #3
0
        public MainWindow()
        {
            InitializeComponent();
            App.SetWindowFont(this);

            if (!UpdateView())
            {
                this.Close();
            }
        }
        public EditDeviceDialog(Device device, string action)
        {
            InitializeComponent();
            App.SetWindowFont(this);
            this.Title = action + " Device";

            this.Device      = SerializationHelper.CloneObject <Device>(device);
            this.DataContext = this.Device;

            UpdateSyncSelections();
        }
        public SettingsDialog(CatalogConfig config)
        {
            InitializeComponent();
            App.SetWindowFont(this);

            this.Config      = config.Clone <CatalogConfig>();
            this.DataContext = this.Config;

            UpdatePlatformConfigs();
            UpdateDevices();
        }
Beispiel #6
0
        public EditPlatformConfigDialog(PlatformConfig platformConfig, string action)
        {
            InitializeComponent();
            App.SetWindowFont(this);
            this.Title = action + " Platform Config";

            this.PlatformConfig = SerializationHelper.CloneObject <PlatformConfig>(platformConfig);
            WPFHelper.FillComboBox(comboPlatform, EnumHelper.EnumToList <Platform>(),
                                   this.PlatformConfig.Platform);
            this.DataContext = this.PlatformConfig;

            UpdateGameConfigs();
            UpdateEmulators();
        }
Beispiel #7
0
        public MatchGamesDialog(CatalogEditor catalogEditor)
        {
            InitializeComponent();
            App.SetWindowFont(this);
            this.Closing += MatchGamesDialog_Closing;

            this.CatalogEditor = catalogEditor;
            this.Games         = this.CatalogEditor.GatherIncompleteGames();

            foreach (var scraper in ScraperEngine.GatherScrapers(this.CatalogEditor.Config.FolderPath))
            {
                comboScraper.Items.Add(scraper);
            }
            if (comboScraper.Items.Count > 0)
            {
                comboScraper.SelectedIndex = 0;
            }
        }
Beispiel #8
0
        public SyncDeviceDialog(Catalog catalog)
        {
            InitializeComponent();
            App.SetWindowFont(this);
            this.Closing += SyncDeviceDialog_Closing;

            this.Catalog = catalog;

            this.SyncEngine           = new LocalDevicePushSyncEngine();
            this.SyncEngine.Progress += SyncEngine_Progress;

            foreach (var device in ((CatalogConfig)catalog.Config).Devices)
            {
                comboDevice.Items.Add(device);
            }

            if (comboDevice.Items.Count > 0)
            {
                comboDevice.SelectedIndex = 0;
                buttonSync.IsEnabled      = true;
            }
        }