public override void DocumentContextChanged(GH_Document document, GH_DocumentContext context) { if (context == GH_DocumentContext.Unloaded) { if (myControlPanel != null) { channel = myControlPanel.channel; } if (host != null) { try { host.Close(); } catch { host.Abort(); } } } if (context == GH_DocumentContext.Loaded) { myControlPanel = new mypanel(this, channel); functionset(); myControlPanel._update(); myControlPanel.Width = 190; init(); } base.DocumentContextChanged(document, context); }
public override void AddedToDocument(GH_Document document) { myControlPanel = new mypanel(this, repo, proj, key, filterbyname, filteroldone); functionset(); myControlPanel._update(); myControlPanel.Width = 190; base.AddedToDocument(document); }
public override void AddedToDocument(GH_Document document) { myControlPanel = new mypanel(this, channel); functionset(); myControlPanel._update(); myControlPanel.Width = 190; base.AddedToDocument(document); init(); }
public override void DocumentContextChanged(GH_Document document, GH_DocumentContext context) { if (context == GH_DocumentContext.Unloaded) { if (myControlPanel != null) { proj = myControlPanel.project; key = myControlPanel.key; filteroldone = myControlPanel._filteroldone; filterbyname = myControlPanel._filterbyname; } } if (context == GH_DocumentContext.Loaded) { myControlPanel = new mypanel(this, repo, proj, key, filterbyname, filteroldone); functionset(); myControlPanel._update(); myControlPanel.Width = 190; } base.DocumentContextChanged(document, context); }