Esempio n. 1
0
        private void cmsQueue_Opening(object sender, CancelEventArgs e)
        {
            foreach (ToolStripItem menuItem in cmsQueue.Items)
            {
                menuItem.Enabled = false;
            }

            if (CurrentFtpClient != null)
            {
                执行队列TToolStripMenuItem.Enabled = btnStartQueue.Enabled;
                除ToolStripMenuItem.Enabled     = lvQueue.SelectedItems.Count > 0;
#warning 载入队列、保存队列暂时不可用
                //载入队列LToolStripMenuItem.Enabled = CurrentTransferQueue.QueueState == TransferQueue.TransferQueueState.Stoped;
                //保存队列SToolStripMenuItem.Enabled = CurrentTransferQueue.QueueState == TransferQueue.TransferQueueState.Stoped;
                清除队列ToolStripMenuItem.Enabled = CurrentTransferQueue.GetQueueItemCount() > 0 && CurrentTransferQueue.QueueState != TransferQueue.TransferQueueState.Running;
            }
        }