Exemplo n.º 1
0
        void DisableSyncing(bool closeProject)
        {
            if (!SyncingEnabled)
            {
                return;
            }

            XC4Debug.Log("Disabled syncing for project: {0}", dnp.Name);

            XC4Debug.Indent();
            try {
                if (closeProject)
                {
                    xcode.CloseProject();
                }
                xcode.DeleteProjectDirectory();
            } finally {
                MonoDevelop.Ide.IdeApp.CommandService.ApplicationFocusIn -= AppRegainedFocus;
                dnp.FileAddedToProject           -= FileAddedToProject;
                dnp.FilePropertyChangedInProject -= FilePropertyChangedInProject;;
                dnp.FileRemovedFromProject       -= FileRemovedFromProject;
                dnp.FileChangedInProject         -= FileChangedInProject;
                dnp.NameChanged -= ProjectNameChanged;

                XC4Debug.Unindent();
                xcode = null;
            }
        }
Exemplo n.º 2
0
        void DisableSyncing()
        {
            if (!syncing)
            {
                return;
            }
            syncing = false;

            xcode.CloseProject();
            xcode.DeleteProjectDirectory();
            xcode = null;

            XC4Debug.Log("Disabled syncing for project: {0}", dnp.Name);

            dnp.FileAddedToProject           -= FileAddedToProject;
            dnp.FilePropertyChangedInProject -= FilePropertyChangedInProject;;
            dnp.FileRemovedFromProject       -= FileRemovedFromProject;
            dnp.FileChangedInProject         -= FileChangedInProject;
            dnp.NameChanged -= ProjectNameChanged;
            MonoDevelop.Ide.IdeApp.CommandService.ApplicationFocusIn -= AppRegainedFocus;
        }