コード例 #1
0
        private void ProcessDeployCommand()
        {
            if (!BatchMode)
            {
                throw new Exception("Batch mode is not active.");
            }
            if (batchQueue.Count == 0)
            {
                throw new Exception("There are no commands to deploy.");
            }

            waitTotal = ConnectivityManager.GetDelayToControl(Shared.Vessel);
            if (double.IsPositiveInfinity(waitTotal))
            {
                throw new Exception("No connection available.");
            }

            Print("Deploying...");
            BatchMode      = false;
            deployingBatch = true;
            StartDeployment();
        }