private SnippetToolboxSection(SerializationInfo info, StreamingContext context)
 {
     this.Deserialize(info, context);
     if (Snippets == null)
     {
         Snippets = this;
     }
 }
 public SnippetToolboxSection(string name)
     : base(name)
 {
     base.Icon = new Icon(typeof(SnippetToolboxSection), "SnippetToolboxSection.ico");
     if (Snippets == null)
     {
         Snippets = this;
     }
 }
Beispiel #3
0
 public ExportSnippetsWizard(IServiceProvider serviceProvider, SnippetToolboxSection section)
     : base(serviceProvider)
 {
     this._snippetList = new ListSnippetsWizardPanel(serviceProvider, "Export Snippets", "Select the snippets to export.");
     foreach (SnippetToolboxDataItem item in section.ToolboxDataItems)
     {
         this._snippetList.AddSnippet(item);
     }
     base.WizardPanels.Add(this._snippetList);
     base.WizardPanels.Add(new SaveSnippetsWizardPanel(serviceProvider));
     this.Text = "Export Snippets";
 }