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); } }
public void SaveItemFilterScript(ItemFilterScript script) { _fileSystemService.WriteFileFromString(script.FilePath, _itemFilterScriptTranslator.TranslateItemFilterScriptToString(script)); }
private void OnCopyScriptCommand() { Clipboard.SetText(_itemFilterScriptTranslator.TranslateItemFilterScriptToString(_avalonDockWorkspaceViewModel.ActiveScriptViewModel.Script)); }