public WebView(MultipleViewManager host, string uri, object controller) : base(host, new WebBrowser()) { browser = (WebBrowser)self; if (controller != null) browser.ObjectForScripting = controller; browser.IsWebBrowserContextMenuEnabled = false; browser.Navigated += delegate { host.Invalidate(); }; browser.Navigate(new Uri(uri)); }
ProfilerView(MultipleViewManager host, CallTreeView v, TreeColumnHeader h, Panel p, LegendBar b, ContextMenuStrip cms) : base(host, p) { cc = p; cc.Size = new Size(300, 300); cc.Controls.Add(v); v.Anchor = AnchorUtil.ClientArea; v.Location = new Point(0, 20); v.Size = new Size(cc.Width, cc.Height - 40); cc.Controls.Add(h); h.Anchor = AnchorUtil.TopEdge; h.Location = new Point(); h.Size = new Size(cc.ClientSize.Width, 20); cc.Controls.Add(b); b.Anchor = AnchorUtil.BottomEdge; b.Location = new Point(0, cc.ClientSize.Height - 20); b.Size = new Size(cc.ClientSize.Width, 20); this.view = v; view.HaxContextMenu = cms; }
public static ProfilerView Create(MultipleViewManager host, CallTreeView c, TreeColumnHeader h, LegendBar b, ContextMenuStrip cms) { Panel p = new Panel(); return new ProfilerView(host, c, h, p, b, cms); }
public ViewBase(MultipleViewManager host, Control self) { this.host = host; this.self = self; }