private void HandleDroppedFileMessage(string message) { var droppedFiles = message.Split('|'); var threadStart = new ThreadStart(() => _fileConversionAssistant.HandleFileList(droppedFiles)); _threadManager.StartSynchronizedUiThread(threadStart, "PipeDragAndDrop"); }
private void HandleDroppedFileMessage(string message, bool merge) { var droppedFiles = message.Split('|') .Skip(1) .Where(s => !string.IsNullOrWhiteSpace(s)); var threadStart = new ThreadStart(() => _fileConversionAssistant.HandleFileList(droppedFiles)); _threadManager.StartSynchronizedUiThread(threadStart, "PipeDragAndDrop"); }
protected override bool StartApplication() { var list = new List <(string path, AppStartParameters paramters)>(); foreach (var droppedFile in DroppedFiles) { list.Add((droppedFile, AppStartParameters)); } _fileConversionAssistant.HandleFileList(list); return(true); }
private void ConvertFileExecute() { var interaction = new OpenFileInteraction(); _interactionInvoker.Invoke(interaction); if (!interaction.Success) { return; } var file = interaction.FileName; _fileConversionAssistant.HandleFileList(new List <string> { file }); }
private void HandleDroppedFileMessage(string message, bool merge) { var droppedFiles = message.Split('|') .Skip(1) .Where(s => !string.IsNullOrWhiteSpace(s)); if (merge && _mainWindowThreadLauncher.IsPrintJobShellOpen()) { _mainWindowThreadLauncher.SwitchPrintJobShellToMergeWindow(); } else if (merge) { _jobInfoQueueManager.ManagePrintJobs(); } var threadStart = new ThreadStart(() => _fileConversionAssistant.HandleFileList(droppedFiles)); _threadManager.StartSynchronizedUiThread(threadStart, "PipeDragAndDrop"); }
/// <summary> /// Removes invalid files, adds the files that do not need to be printed to the current JobInfoQueue /// and launches print jobs for the remaining files. /// </summary> public void HandleDropEvent(DragEventArgs e) { var droppedFiles = (string[])e.Data.GetData(DataFormats.FileDrop, false); _fileConversionAssistant.HandleFileList(droppedFiles); }
protected override bool StartApplication() { _fileConversionAssistant.HandleFileList(DroppedFiles); return(true); }