示例#1
0
        protected override InspectorManager GetInitializationContext()
        {
            var inspectorDelegate = GetInspectorDelegate();
            var over     = new MacBorderedWindow(CGRect.Empty, NSColor.Green);
            var next     = new MacBorderedWindow(CGRect.Empty, NSColor.Red);
            var previous = new MacBorderedWindow(CGRect.Empty, NSColor.Blue);
            var acc      = new MacAccessibilityWindow(new CGRect(10, 10, 600, 700));
            var ins      = new InspectorWindow(inspectorDelegate, new CGRect(10, 10, 600, 700));;
            var tool     = new MacToolbarWindow(inspectorDelegate, new CGRect(10, 10, 100, 700));

            tool.ShowToolkit(hasToolkit);

            return(new InspectorManager(macDelegate, over, next, previous, acc, ins, tool));
        }
示例#2
0
        public void InitializeManager(InspectorContext context, ToolbarService service)
        {
            LoadModules(context);

            var over     = new MacBorderedWindow(CGRect.Empty, NSColor.Green);
            var next     = new MacBorderedWindow(CGRect.Empty, NSColor.Red);
            var previous = new MacBorderedWindow(CGRect.Empty, NSColor.Blue);
            var acc      = new MacAccessibilityWindow(new CGRect(10, 10, 600, 700));
            var ins      = new InspectorWindow(this, new CGRect(10, 10, 600, 700));;
            var tool     = new MacToolbarWindow(this, new CGRect(10, 10, 100, 700));

            tool.ShowToolkit(false);
            var manager = new InspectorManager(this, over, next, previous, acc, ins, tool);

            context.Initialize(manager, false);
            service.SetDelegate(this);
        }