void CreateContent() { if (this.content == null) { this.content = codon.InitializePadContent(this); } }
internal Pad FindPad(PadContent padContent) { foreach (Pad pad in Pads) { if (pad.Content == padContent) { return(pad); } } return(null); }
public Pad ShowPad(PadContent padContent, string id, string label, string defaultPlacement, DockItemStatus defaultStatus, IconId icon) { return(ShowPad(new PadCodon(padContent, id, label, defaultPlacement, defaultStatus, icon))); }
public Pad AddPad(PadContent padContent, string id, string label, string defaultPlacement, IconId icon) { return(AddPad(new PadCodon(padContent, id, label, defaultPlacement, icon))); }
public PadContent InitializePadContent (IPadWindow window) { if (content == null) { content = CreatePad (); content.Init (window); ApplyPreferences (); } else if (!initializeCalled) { content.Init (window); ApplyPreferences (); } initializeCalled = true; return content; }
public PadCodon (PadContent content, string id, string label, string defaultPlacement, DockItemStatus defaultStatus, string icon) { this.id = id; this.content = content; this.label = label; this.defaultPlacement = defaultPlacement; this.icon = icon; this.defaultStatus = defaultStatus; }
public PadCodon (PadContent content, string id, string label, string defaultPlacement, string icon) : this (content, id, label, defaultPlacement, DockItemStatus.Dockable, icon) { }
void CreateContent () { if (this.content == null) { this.content = codon.InitializePadContent (this); } }