public async Task SaveItemFilterScriptAsync(ItemFilterScript script)
 {
     await Task.Run(() =>
     {
         _fileSystemService.WriteFileFromString(script.FilePath,
                                                _itemFilterScriptTranslator.TranslateItemFilterScriptToString(script));
     });
 }
 private void OnCopyScriptCommand()
 {
     try
     {
         _clipboardService.SetClipboardText(
             _itemFilterScriptTranslator.TranslateItemFilterScriptToString(
                 _avalonDockWorkspaceViewModel.ActiveScriptViewModel.Script));
     }
     catch
     {
         _messageBoxService.Show("Clipboard Error", "Failed to access the clipboard, copy command not completed.",
                                 MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
示例#3
0
 public void SaveItemFilterScript(ItemFilterScript script)
 {
     _fileSystemService.WriteFileFromString(script.FilePath,
                                            _itemFilterScriptTranslator.TranslateItemFilterScriptToString(script));
 }
示例#4
0
 private void OnCopyScriptCommand()
 {
     Clipboard.SetText(_itemFilterScriptTranslator.TranslateItemFilterScriptToString(_avalonDockWorkspaceViewModel.ActiveScriptViewModel.Script));
 }