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); }
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); }
public override void Dispose () { lock (typeof (ProjectNodeBuilder)) instance = null; }
protected override void Initialize () { lock (typeof (ProjectNodeBuilder)) instance = this; }