コード例 #1
0
        static public bool EndPackaging(string workspaceDirectory)
        {
            // Make sure we are not already tracking this workspace?
            MOG_ControllerSyncData workspace = GetWorkspace(workspaceDirectory);

            if (workspace != null)
            {
                // Inform this workspace we are finished packaging
                workspace.EndPackaging();

                // Kick start another auto package merge check just in case anything new came in while we were waiting for this package to finish
                workspace.AutoPackage();
                return(true);
            }

            return(false);
        }
コード例 #2
0
        static public bool ShutdownEditor(string workspaceDirectory)
        {
            // Get this workspace given the specified workspaceDirectory
            MOG_ControllerSyncData workspace = GetWorkspace(workspaceDirectory);

            if (workspace != null)
            {
                // Check if we were in the middle of a package merge?
                if (workspace.GetLocalPackagingStatus() == MOG_ControllerSyncData.PackageState.PackageState_Busy)
                {
                    // Close the merge progress dialog
                    workspace.EndPackaging();
                }

                return(true);
            }

            return(false);
        }