예제 #1
0
		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));
		}
예제 #2
0
        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;
        }
예제 #3
0
 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);
 }
예제 #4
0
		public ViewBase(MultipleViewManager host, Control self)
		{
			this.host = host;
			this.self = self;
		}