示例#1
0
        public static void DisableProject(Project project)
        {
            if (HasDesignedObjects(project))
            {
                return;
            }

            GtkDesignInfo    info      = FromProject(project);
            StringCollection saveFiles = new StringCollection();

            saveFiles.AddRange(new string[] { info.ObjectsFile, info.SteticFile });
            info.CleanGtkFolder(saveFiles);
            project.Files.Remove(info.ObjectsFile);
            project.Files.Remove(info.SteticFile);

            var ext = project.GetService <GtkProjectServiceExtension> ();

            if (ext != null)
            {
                ext.DesignInfo = null;
            }
            info.Dispose();

            ProjectNodeBuilder.OnSupportChanged(project);
        }
示例#2
0
        public static void DisableProject(Project project)
        {
            if (HasDesignedObjects(project))
            {
                return;
            }

            GtkDesignInfo    info      = FromProject(project);
            StringCollection saveFiles = new StringCollection();

            saveFiles.AddRange(new string[] { info.ObjectsFile, info.SteticFile });
            info.CleanGtkFolder(saveFiles);
            project.Files.Remove(info.ObjectsFile);
            project.Files.Remove(info.SteticFile);
            IExtendedDataItem item = (IExtendedDataItem)project;

            item.ExtendedProperties.Remove("GtkDesignInfo");
            info.Dispose();
            ProjectNodeBuilder.OnSupportChanged(project);
        }
示例#3
0
		public override void Dispose ()
		{
			lock (typeof (ProjectNodeBuilder))
				instance = null;
		}
示例#4
0
		protected override void Initialize ()
		{
			lock (typeof (ProjectNodeBuilder))
				instance = this;
		}