private void SetDownloadUsage()
 {
     if (!_selectedConfigFile.DownloadUsageIsSet())
     {
         Log.Information("Set download usage");
         var downloadUsageDialog = new DownloadUsageDialog();
         downloadUsageDialog.ShowDialog();
     }
 }
Esempio n. 2
0
 private void GetDownloadUsage()
 {
     if (_selectedConfigFile.DownloadUsage == null)
     {
         var downloadUsageDialog = new DownloadUsageDialog();
         downloadUsageDialog.ShowDialog();
         _appSettings        = ApplicationService.GetAppSettings();
         _selectedConfigFile = _appSettings.LastOpendConfigFile;
     }
     ShowDownloadUsage();
 }
Esempio n. 3
0
        private void BtnEditDownloadUsage_OnClick(object sender, RoutedEventArgs e)
        {
            ApplicationService.WriteToAppSettingsFile(_appSettings);
            var downloadUsageDialog = new DownloadUsageDialog();

            downloadUsageDialog.ShowDialog();
            _appSettings = ApplicationService.GetAppSettings();
            if (_newConfig && _appSettings.TempConfigFile != null)
            {
                _selectedConfigFile.DownloadUsage = _appSettings.TempConfigFile.DownloadUsage;
                //_appSettings.TempConfigFile = null;
            }
            else if (_editConfig)
            {
                _selectedConfigFile = _appSettings.LastOpendConfigFile;
            }
            GetDownloadUsage();
        }