Example #1
0
 private void AddDefaultMasterListItems()
 {
     try
     {
         if (!_masterListService.Items.Any())
         {
             _masterListService.AddDefaultItems();
         }
     }
     catch (Exception exception)
     {
         _dialogService.ShowErrorDialog("Error creating default master list items. This is not a critical error, although adding a preset via Import Installed Files "
                                        + "may not pick up all desired files/folders until you start adding presets." + Environment.NewLine + Environment.NewLine + exception.Message);
     }
 }
Example #2
0
 private void AddDefaultMasterListItems()
 {
     try
     {
         if (!_masterListService.Items.Any())
         {
             _masterListService.AddDefaultItems();
         }
     }
     catch (Exception exception)
     {
         _dialogService.ShowErrorDialog("创建默认主列表项时出错。 这不是一个严重的错误,虽然通过导入安装的文件添加预设可能不会选择所有所需的文件/文件夹"
                                        + ",直到你开始添加enb预设。" + Environment.NewLine + Environment.NewLine + exception.Message);
     }
 }