Exemple #1
0
        /// <summary>
        /// Handle a workspace that want to be disconnected.
        /// </summary>
        public static void HandleKwsToDisconnect(Workspace kws)
        {
            if (!kws.InKcdConnectTree())
            {
                return;
            }

            // Remove the workspace from the KCD connection tree.
            kws.RemoveFromKcdConnectTree();

            // Disconnect the KCD if no workspace want to be connected.
            if (kws.Kcd.KwsConnectTree.Count == 0)
            {
                DisconnectKcd(kws.Kcd, null);
            }
        }
Exemple #2
0
        /// <summary>
        /// Handle a workspace that want to be disconnected.
        /// </summary>
        public static void HandleKwsToDisconnect(Workspace kws)
        {
            if (!kws.InKcdConnectTree()) return;

            // Remove the workspace from the KCD connection tree.
            kws.RemoveFromKcdConnectTree();

            // Disconnect the KCD if no workspace want to be connected.
            if (kws.Kcd.KwsConnectTree.Count == 0) DisconnectKcd(kws.Kcd, null);
        }