Esempio n. 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="settingsService"></param>
        public SettingsWindow(IMameMinerSettingsService settingsService)
        {
            InitializeComponent();

            _settingsService = settingsService;

            if(_settingsService != null)
            {
                this.GameExportPathTextBox.Text = _settingsService.GetMameExportPath();
                this.PathToMameExeTextBox.Text = _settingsService.GetMameExecutablePath();
                this.RomImportPathTextBox.Text = _settingsService.GetMameImportPath();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 
        /// </summary>
        public MainWindow()
        {
            _zipFileRepository = RepositoryManager.GetInstanceOf<IZipFileRepository>();
            _gameRepository = RepositoryManager.GetInstanceOf<IMameGameRepository>();
            _settingsService = ServiceManager.GetInstanceOf<IMameMinerSettingsService>();
            _zipFileService = ServiceManager.GetInstanceOf<IZipFileService>();

            InitializeComponent();

            SetStatus("Main Window Created");

            if (_settingsService.GetMameExecutablePath() == string.Empty || _settingsService.GetMameExportPath() == string.Empty || _settingsService.GetMameImportPath() == string.Empty)
            {
                new SettingsWindow(_settingsService).ShowDialog();
            }
        }