public PackageClass() { Groups = new GroupItemCollection(); Sections = new SectionItemCollection(); GeneralInfo = new GeneralInfoItem(); UniqueFileList = new FileItemCollection(); Version = "2.0"; ZipProvider = new ZipProviderClass(); UnInstallInfo = new UnInstallInfoCollection(); Dependencies = new DependencyItemCollection(); PluginDependencies = new PluginDependencyItemCollection(); ProjectSettings = new ProjectSettings(); Silent = false; IsHiden = false; Parent = null; }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { // Get the dependency item collection DependencyItemCollection items = value as DependencyItemCollection; if (context == null || provider == null || context.Instance == null || value == null) { return(base.EditValue(context, provider, value)); } using (DependencyItemEditorDlg dlg = new DependencyItemEditorDlg(items)) { dlg.ShowDialog(); } return(value); }