private static void OutTransferStarted(object sender, OutTransferEventArgs args) { // Call the event for the frontend OutboundTransferStarted?.Invoke(null, args); // Remove the file from the queued list for (int i = 0; i < QueuedOutboundFiles.Count; i++) { if (QueuedOutboundFiles[i].FilePath == args.FilePath) { QueuedOutboundFiles.RemoveAt(i); } } }
private static void OutTransferFinished(object sender, OutTransferEventArgs args) { ActiveOutboundTransferProcess = null; OutboundTransferFinished?.Invoke(null, args); if (OutboundTransfersAllowed) { SendNextFile(); } else { OutboundTransfersAllowed = true; } }