예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        private static void OutTransferFinished(object sender, OutTransferEventArgs args)
        {
            ActiveOutboundTransferProcess = null;

            OutboundTransferFinished?.Invoke(null, args);

            if (OutboundTransfersAllowed)
            {
                SendNextFile();
            }
            else
            {
                OutboundTransfersAllowed = true;
            }
        }