public StandardShowCommands(
     ICommandService commandService, 
     IContextRegistry contextRegistry)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
 }
Beispiel #2
0
        public TerrainManipulator(IContextRegistry contextRegistry, TerrainNamingBridge namingBridge)
        {
            _manipContext = new GUILayer.ActiveManipulatorContext();
            _manipContext.OnActiveManipulatorChange +=
                (object sender, EventArgs e) =>
            {
                if (this.OnHoveringControlChanged != null)
                {
                    this.OnHoveringControlChanged(null, EventArgs.Empty);
                }
            };
            _nativeManip                = null;
            _attachedSceneManager       = new WeakReference(null);
            _attachedTerrainManiContext = null;

            _contextRegistry = new WeakReference(contextRegistry);
            contextRegistry.ActiveContextChanged += OnActiveContextChanged;
            _nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext);

            _baseTextureCombo = new System.Windows.Forms.ComboBox();
            _baseTextureCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            _baseTextureCombo.DisplayMember = "Text";
            _baseTextureCombo.ValueMember   = "Value";

            _decorationMaterialCombo = new System.Windows.Forms.ComboBox();
            _decorationMaterialCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            _decorationMaterialCombo.DisplayMember = "Text";
            _decorationMaterialCombo.ValueMember   = "Value";

            _namingBridge = namingBridge;
            _namingBridge.OnBaseTextureMaterialsChanged += OnBaseTextureMaterialsChanged;
            _namingBridge.OnDecorationMaterialsChanged  += OnDecorationMaterialsChanged;
        }
Beispiel #3
0
        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            PrototypeLister prototypeLister,
            LayerLister layerLister,
            SchemaLoader schemaLoader)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_documentService = documentService;
            m_prototypeLister = prototypeLister;
            m_layerLister = layerLister;
            
            m_schemaLoader = schemaLoader;

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\CircuitEditor\\data");
            EditorInfo.InitialDirectory = initialDirectory;
            m_theme = new D2dDiagramTheme();
            m_circuitRenderer = new D2dCircuitRenderer<Module, Connection, ICircuitPin>(m_theme, documentRegistry);
            m_subGraphRenderer = new D2dSubCircuitRenderer<Module, Connection, ICircuitPin>(m_theme);

            // create d2dcontrol for displaying sub-circuit            
            m_d2dHoverControl = new D2dAdaptableControl();
            m_d2dHoverControl.Dock = DockStyle.Fill;
            var xformAdapter = new TransformAdapter();
            xformAdapter.EnforceConstraints = false;//to allow the canvas to be panned to view negative coordinates
            m_d2dHoverControl.Adapt(xformAdapter, new D2dGraphAdapter<Module, Connection, ICircuitPin>(m_circuitRenderer, xformAdapter));
            m_d2dHoverControl.DrawingD2d += new EventHandler(m_d2dHoverControl_DrawingD2d);
        }
Beispiel #4
0
        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            PrototypeLister prototypeLister,
            SchemaLoader schemaLoader,
            DiagramTheme diagramTheme)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_documentService = documentService;
            m_prototypeLister = prototypeLister;

            m_schemaLoader = schemaLoader;

            m_theme = new D2dDiagramTheme();
            m_fsmRenderer = new D2dDigraphRenderer<State, Transition>(m_theme);

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\FsmEditor\\data");
            EditorInfo.InitialDirectory = initialDirectory;
        }
Beispiel #5
0
 public StandardSelectionCommands(ICommandService commandService, IContextRegistry contextRegistry)
 {
     m_commandService  = commandService;
     m_contextRegistry = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanging;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanged;
 }
Beispiel #6
0
        public TimelineEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            IPaletteService paletteService,
            ISettingsService settingsService)
        {
            s_schemaLoader = new SchemaLoader();
            s_repository.DocumentAdded += repository_DocumentAdded;
            s_repository.DocumentRemoved += repository_DocumentRemoved;

            paletteService.AddItem(Schema.markerType.Type, "Timelines", this);
            paletteService.AddItem(Schema.groupType.Type, "Timelines", this);
            paletteService.AddItem(Schema.trackType.Type, "Timelines", this);
            paletteService.AddItem(Schema.intervalType.Type, "Timelines", this);
            paletteService.AddItem(Schema.keyType.Type, "Timelines", this);
            paletteService.AddItem(Schema.timelineRefType.Type, "Timelines", this);

            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_controlHostService = controlHostService;
            m_documentService = documentService;
            m_settingsService = settingsService;
        }
Beispiel #7
0
 public SourceControlContext(
     IDocumentRegistry documentRegistry,
     IContextRegistry contextRegistry)
 {
     m_documentRegistry = documentRegistry;
     m_contextRegistry = contextRegistry;
 }
        public OpenSupportTicketTasks(IRepository <SupportTicket> supportTicketRepository, IContextRegistry contextRegistry,
                                      IRepository <Customer> customerRepository, IRepository <IssueType> issueTypeRepository)
        {
            if (supportTicketRepository == null)
            {
                throw new ArgumentNullException("supportTicketRepository is null");
            }
            if (issueTypeRepository == null)
            {
                throw new ArgumentNullException("issueTypeRepository is null");
            }
            if (customerRepository == null)
            {
                throw new ArgumentNullException("customerRepository is null");
            }
            if (contextRegistry == null)
            {
                throw new ArgumentNullException("contextRegistry is null");
            }

            _issueTypeRepository     = issueTypeRepository;
            _supportTicketRepository = supportTicketRepository;
            _customerRepository      = customerRepository;
            _contextRegistry         = contextRegistry;
        }
Beispiel #9
0
 public PropertyEditor(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
 {
     ControlHostService = controlHostService;
     ContextRegistry = contextRegistry;
 }
Beispiel #10
0
 public MyPropertyEditor(
     ICommandService commandService,
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
     : base(commandService, controlHostService, contextRegistry)
 {
 }
Beispiel #11
0
        public TimelineEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            IPaletteService paletteService,
            ISettingsService settingsService)
        {
            s_schemaLoader                = new SchemaLoader();
            s_repository.DocumentAdded   += repository_DocumentAdded;
            s_repository.DocumentRemoved += repository_DocumentRemoved;

            paletteService.AddItem(Schema.markerType.Type, "Timelines", this);
            paletteService.AddItem(Schema.groupType.Type, "Timelines", this);
            paletteService.AddItem(Schema.trackType.Type, "Timelines", this);
            paletteService.AddItem(Schema.intervalType.Type, "Timelines", this);
            paletteService.AddItem(Schema.keyType.Type, "Timelines", this);
            paletteService.AddItem(Schema.timelineRefType.Type, "Timelines", this);

            m_contextRegistry    = contextRegistry;
            m_documentRegistry   = documentRegistry;
            m_controlHostService = controlHostService;
            m_documentService    = documentService;
            m_settingsService    = settingsService;
        }
Beispiel #12
0
 public ShowCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry)
 {
     m_commandService  = commandService;
     m_contextRegistry = contextRegistry;
 }
Beispiel #13
0
 public PropertyEditor(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
 {
     ControlHostService = controlHostService;
     ContextRegistry    = contextRegistry;
 }
Beispiel #14
0
        public GameEditor(
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IControlHostService controlHostService,
            ICommandService commandService,
            IDocumentService documentService,
            IPaletteService paletteService,
            ISettingsService settingsService,
            IResourceService resourceService,
            LevelEditorCore.ResourceLister resourceLister,
            BookmarkLister bookmarkLister
            )
        {
            m_contextRegistry  = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_paletteService   = paletteService;
            m_settingsService  = settingsService;
            m_documentService  = documentService;
            m_resourceService  = resourceService;
            m_resourceLister   = resourceLister;
            m_bookmarkLister   = bookmarkLister;

            //to-do wire it to to command service
            InputScheme.ActiveControlScheme = new MayaControlScheme();
            ResolveOnLoad = true;
        }
 public ManipulatorCommands(
     IContextRegistry contextRegistry,
     ICommandService commandService)
 {
     m_contextRegistry = contextRegistry;
     m_commandService  = commandService;
 }
Beispiel #16
0
        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            SchemaLoader schemaLoader,
            PrototypeLister prototypeLister)
        {
            m_controlHostService = controlHostService;
            m_commandService     = commandService;
            m_contextRegistry    = contextRegistry;
            m_documentRegistry   = documentRegistry;
            m_documentService    = documentService;

            m_schemaLoader = schemaLoader;

            m_diagramTheme = new D2dDiagramTheme();

            D2dGradientStop[] gradStops =
            {
                new D2dGradientStop(Color.WhiteSmoke, 0),
                new D2dGradientStop(Color.LightGray, 1)
            };
            m_diagramTheme.FillGradientBrush = D2dFactory.CreateLinearGradientBrush(gradStops);
            m_diagramTheme.FillBrush         = D2dFactory.CreateSolidBrush(Color.WhiteSmoke);
            m_statechartRenderer             = new D2dStatechartRenderer <StateBase, Transition>(m_diagramTheme);

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\StatechartEditor\\data");

            EditorInfo.InitialDirectory = initialDirectory;
        }
        /// <summary>
        /// Constructor with IContextRegistry</summary>
        /// <param name="contextRegistry">Context registry</param>
        public SearchResultsListView(IContextRegistry contextRegistry)
        {
            // Configure ListView
            View               = View.Details;
            LabelEdit          = false;
            AllowColumnReorder = false;
            CheckBoxes         = false;
            FullRowSelect      = true;
            MultiSelect        = true;
            GridLines          = true;
            Sorting            = SortOrder.Ascending;

            _syncContext          = System.Threading.SynchronizationContext.Current;
            _selectionUpdateTimer = new System.Threading.Timer(
                (t) =>
            {
                var listView = ((WeakReference)t).Target as SearchResultsListView;
                if (listView != null)
                {
                    listView._syncContext.Post(new System.Threading.SendOrPostCallback(UpdateSelectionTick), listView);
                }
            },
                new WeakReference(this), 100, System.Threading.Timeout.Infinite);
            SelectedIndexChanged += SearchResultsListView_SelectedIndexChanged;
        }
Beispiel #18
0
 public GameEditor(
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,            
     IControlHostService controlHostService,
     ICommandService commandService,
     IDocumentService documentService,
     IPaletteService paletteService,
     ISettingsService settingsService,            
     IResourceService resourceService,
     LevelEditorCore.ResourceLister resourceLister,            
     BookmarkLister bookmarkLister
     )
 {
     m_contextRegistry = contextRegistry;
     m_documentRegistry = documentRegistry;
     m_paletteService = paletteService;
     m_settingsService = settingsService;            
     m_documentService = documentService;            
     m_resourceService = resourceService;
     m_resourceLister = resourceLister;            
     m_bookmarkLister = bookmarkLister;
     
     //to-do wire it to to command service
     InputScheme.ActiveControlScheme = new MayaControlScheme();
     ResolveOnLoad = true;
 }
Beispiel #19
0
 public SourceControlContext(
     IDocumentRegistry documentRegistry,
     IContextRegistry contextRegistry)
 {
     m_documentRegistry = documentRegistry;
     m_contextRegistry  = contextRegistry;
 }
Beispiel #20
0
        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            PrototypeLister prototypeLister,
            SchemaLoader schemaLoader,
            DiagramTheme diagramTheme)
        {
            m_controlHostService = controlHostService;
            m_commandService     = commandService;
            m_contextRegistry    = contextRegistry;
            m_documentRegistry   = documentRegistry;
            m_documentService    = documentService;
            m_prototypeLister    = prototypeLister;

            m_schemaLoader = schemaLoader;

            m_theme       = new D2dDiagramTheme();
            m_fsmRenderer = new D2dDigraphRenderer <State, Transition>(m_theme);

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\FsmEditor\\data");

            EditorInfo.InitialDirectory = initialDirectory;
        }
        /// <summary>
        /// Constructor</summary>
        /// <param name="context">Property editor control context</param>
        public StringArrayEditingControl(PropertyEditorControlContext context)
        {
            m_context = context;
            m_initialSelectedObject = m_context.LastSelectedObject.As <DomNodeAdapter>().DomNode;
            m_initialSelectedObject.AttributeChanged += DomNode_AttributeChanged;
            m_toolStrip = new ToolStrip {
                Dock = DockStyle.Top
            };
            InitToolStrip();
            Controls.Add(m_toolStrip);
            Height = m_toolStrip.Height;
            m_toolStrip.SizeChanged += toolStrip_SizeChanged;

            // Get active contexts and subscribe to ContextChanged event
            IContextRegistry contextRegistry = m_context.ContextRegistry;

            if (contextRegistry != null)
            {
                contextRegistry.ActiveContextChanged += contextRegistry_ActiveContextChanged;
                TransactionContext = contextRegistry.GetActiveContext <ITransactionContext>();
            }
            else if (context.TransactionContext != null)
            {
                TransactionContext = context.TransactionContext;
            }
        }
 public CircuitTestCommands(ICommandService commandService,
                            IContextRegistry contextRegistry,
                            SchemaLoader schemaLoader)
 {
     m_commandService = commandService;
     m_schemaLoader   = schemaLoader;
 }
 public StandardSelectionCommands(ICommandService commandService, IContextRegistry contextRegistry)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanging;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanged;
 }
Beispiel #24
0
 public CircuitTestCommands(ICommandService commandService, 
     IContextRegistry contextRegistry,
     SchemaLoader schemaLoader)
 {
     m_commandService = commandService;
     m_schemaLoader = schemaLoader;
 }
 public ManipulatorCommands(
     IContextRegistry contextRegistry,
     ICommandService commandService)
 {
     m_contextRegistry = contextRegistry;
     m_commandService = commandService;
     
 }
Beispiel #26
0
 public PaletteCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     PaletteService paletteService)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_paletteService = paletteService;
 }
Beispiel #27
0
        public TerrainManipulator(IContextRegistry contextRegistry)
        {
            _manipContext = new GUILayer.ActiveManipulatorContext(); 
            _nativeManip = null;

            _contextRegistry = new WeakReference(contextRegistry);
            contextRegistry.ActiveContextChanged += OnActiveContextChanged;
            _nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext);
        }
Beispiel #28
0
        public TerrainManipulator(IContextRegistry contextRegistry)
        {
            _manipContext = new GUILayer.ActiveManipulatorContext();
            _nativeManip  = null;

            _contextRegistry = new WeakReference(contextRegistry);
            contextRegistry.ActiveContextChanged += OnActiveContextChanged;
            _nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext);
        }
 /// <summary>
 /// Constructor</summary>
 /// <param name="editingControlOwner">Interface for property editing control owners</param>
 /// <param name="descriptor">Property descriptor</param>
 /// <param name="transactionContext">Interface for transaction contexts</param>
 /// <param name="contextRegistry">Context registry</param>
 public PropertyEditorControlContext(
     IPropertyEditingControlOwner editingControlOwner,
     PropertyDescriptor descriptor,
     ITransactionContext transactionContext,
     IContextRegistry contextRegistry)
     : this(editingControlOwner, descriptor, transactionContext)
 {
     m_contextRegistry = contextRegistry;
 }
 public LayeringCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     LayerLister layerLister)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_layerLister = layerLister;
 }
 public LayeringCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     LayerLister layerLister)
 {
     m_commandService  = commandService;
     m_contextRegistry = contextRegistry;
     m_layerLister     = layerLister;
 }
Beispiel #32
0
 protected TemplatingCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     TemplateLister templateLister)
 {
     m_commandService  = commandService;
     m_contextRegistry = contextRegistry;
     m_templateLister  = templateLister;
 }
 protected TemplatingCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     TemplateLister templateLister)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_templateLister = templateLister;
 }
 public PaletteCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     PaletteService paletteService)
 {
     m_commandService  = commandService;
     m_contextRegistry = contextRegistry;
     m_paletteService  = paletteService;
 }
 /// <summary>
 /// Constructor</summary>
 /// <param name="editingControlOwner">Interface for property editing control owners</param>
 /// <param name="descriptor">Property descriptor</param>
 /// <param name="transactionContext">Interface for transaction contexts</param>
 /// <param name="contextRegistry">Context registry</param>
 public PropertyEditorControlContext(
     IPropertyEditingControlOwner editingControlOwner,
     PropertyDescriptor descriptor,
     ITransactionContext transactionContext,
     IContextRegistry contextRegistry)
     : this(editingControlOwner, descriptor, transactionContext)
 {
     m_contextRegistry = contextRegistry;
 }
Beispiel #36
0
        public PivotCommands(ICommandService commandService, IContextRegistry contextRegistry)
        {
            m_commandService  = commandService;
            m_contextRegistry = contextRegistry;

            // define functions for moving pivots
            //m_functions = new MovePivot[Enum.GetValues(typeof(Command)).Length];
            m_functions = new Func <Vec3F, AABB, Vec3F> [Enum.GetValues(typeof(Command)).Length];

            m_functions[(int)Command.XMin] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(aabb.Min.X, pivot.Y, pivot.Z));
            };

            m_functions[(int)Command.XCenter] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(aabb.Center.X, pivot.Y, pivot.Z));
            };

            m_functions[(int)Command.XMax] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(aabb.Max.X, pivot.Y, pivot.Z));
            };

            m_functions[(int)Command.YMin] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(pivot.X, aabb.Min.Y, pivot.Z));
            };

            m_functions[(int)Command.YCenter] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(pivot.X, aabb.Center.Y, pivot.Z));
            };

            m_functions[(int)Command.YMax] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(pivot.X, aabb.Max.Y, pivot.Z));
            };

            m_functions[(int)Command.ZMin] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(pivot.X, pivot.Y, aabb.Min.Z));
            };
            m_functions[(int)Command.ZCenter] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(pivot.X, pivot.Y, aabb.Center.Z));
            };
            m_functions[(int)Command.ZMax] = (Vec3F pivot, AABB aabb) =>
            {
                return(new Vec3F(pivot.X, pivot.Y, aabb.Max.Z));;
            };
            m_functions[(int)Command.AllCenter] = (Vec3F pivot, AABB aabb) =>
            {
                return(aabb.Center);
            };
        }
Beispiel #37
0
        public PivotCommands(ICommandService commandService, IContextRegistry contextRegistry)
        {
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            // define functions for moving pivots
            //m_functions = new MovePivot[Enum.GetValues(typeof(Command)).Length];
            m_functions = new Func<Vec3F, AABB, Vec3F>[Enum.GetValues(typeof(Command)).Length];

            m_functions[(int)Command.XMin] = (Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(aabb.Min.X, pivot.Y, pivot.Z);
                };

            m_functions[(int)Command.XCenter]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(aabb.Center.X, pivot.Y, pivot.Z);
                };

            m_functions[(int)Command.XMax]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(aabb.Max.X, pivot.Y, pivot.Z);
                };

            m_functions[(int)Command.YMin]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, aabb.Min.Y, pivot.Z);
                };

            m_functions[(int)Command.YCenter]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, aabb.Center.Y, pivot.Z);
                };

            m_functions[(int)Command.YMax]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, aabb.Max.Y, pivot.Z);
                };

            m_functions[(int)Command.ZMin]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, pivot.Y, aabb.Min.Z);
                };
            m_functions[(int)Command.ZCenter]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, pivot.Y, aabb.Center.Z);
                };
            m_functions[(int)Command.ZMax]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, pivot.Y, aabb.Max.Z); ;
                };
            m_functions[(int)Command.AllCenter] = (Vec3F pivot, AABB aabb) =>
            {
                return aabb.Center;
            };
        }
Beispiel #38
0
 public GameProjectLister(
     ICommandService commandService,
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
     : base(commandService)
 {
     m_controlHostService = controlHostService;
     m_contextRegistry = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ContextRegistry_ActiveContextChanged;
 }
Beispiel #39
0
 public CircuitControlRegistry(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry,
     IDocumentService documentService)
 {
     m_controlHostService            = controlHostService;
     m_contextRegistry               = contextRegistry;
     documentService.DocumentOpened += documentService_DocumentOpened;
     documentService.DocumentClosed += documentService_DocumentClosed;
 }
Beispiel #40
0
 public DiagramControlRegistry(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry,
     IDocumentService documentService)
 {
     _hostService = controlHostService;
     _contextRegistry = contextRegistry;
     documentService.DocumentOpened += documentService_DocumentOpened;
     documentService.DocumentClosed += documentService_DocumentClosed;
 }
 public CircuitControlRegistry(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry,
     IDocumentService documentService)
 {
     m_controlHostService = controlHostService;
     m_contextRegistry = contextRegistry;
     documentService.DocumentOpened += documentService_DocumentOpened;
     documentService.DocumentClosed += documentService_DocumentClosed;
 }
Beispiel #42
0
 public DiagramControlRegistry(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry,
     IDocumentService documentService)
 {
     _hostService     = controlHostService;
     _contextRegistry = contextRegistry;
     documentService.DocumentOpened += documentService_DocumentOpened;
     documentService.DocumentClosed += documentService_DocumentClosed;
 }
Beispiel #43
0
 public GameProjectLister(
     ICommandService commandService,
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
     : base(commandService)
 {
     m_controlHostService = controlHostService;
     m_contextRegistry    = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ContextRegistry_ActiveContextChanged;
 }
Beispiel #44
0
        public ResourceListEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            m_contextRegistry.ActiveContextChanged += new EventHandler(contextRegistry_ActiveContextChanged);
        }
Beispiel #45
0
        public ResourceListEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_controlHostService = controlHostService;
            m_commandService     = commandService;
            m_contextRegistry    = contextRegistry;

            m_contextRegistry.ActiveContextChanged += contextRegistry_ActiveContextChanged;
        }
Beispiel #46
0
        public CharacterEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            m_contextRegistry.ActiveContextChanged += contextRegistry_ActiveContextChanged;
        }
        public EventListEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_commandService  = commandService;
            m_contextRegistry = contextRegistry;

            m_contextRegistry.ActiveContextChanged += contextRegistry_ActiveContextChanged;
            m_contextRegistry.ContextAdded         += contextRegistry_ContextAdded;
            m_contextRegistry.ContextRemoved       += contextRegistry_ContextRemoved;
        }
Beispiel #48
0
 public Editor(
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,
     TreeLister treeLister,
     SchemaLoader schemaLoader)
 {
     m_contextRegistry = contextRegistry;
     m_documentRegistry = documentRegistry;
     m_documentRegistry.ActiveDocumentChanged += new EventHandler(documentRegistry_ActiveDocumentChanged);
     m_schemaLoader = schemaLoader;
     m_treeLister = treeLister;
 }
Beispiel #49
0
 public Editor(
     IControlHostService controlHostService,
     IDocumentService documentService,
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,
     DomTypes domTypes)
 {
     m_controlHostService = controlHostService;
     m_documentService = documentService;
     m_contextRegistry = contextRegistry;
     m_documentRegistry = documentRegistry;
 }
Beispiel #50
0
        public EventListEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            m_contextRegistry.ActiveContextChanged += contextRegistry_ActiveContextChanged;
            m_contextRegistry.ContextAdded += contextRegistry_ContextAdded;
            m_contextRegistry.ContextRemoved += contextRegistry_ContextRemoved;
        }
        /// <summary>
        /// Constructor</summary>
        /// <param name="contextRegistry">Interface to dataset that has been been searched</param>
        public DomNodeSearchResultsListView(IContextRegistry contextRegistry)
            : base(contextRegistry)
        {
            // Create columns for the items and subitems.
            // Width of -2 indicates auto-size.
            Columns.Add("Node Name", -2, HorizontalAlignment.Center);
            Columns.Add("Type", -2, HorizontalAlignment.Center);
            Columns.Add("Property", -2, HorizontalAlignment.Right);
            Columns.Add("Value", -2, HorizontalAlignment.Left);

            if (UIChanged == null) return;
        }
 /// <summary>
 /// Constructor with IContextRegistry</summary>
 /// <param name="contextRegistry">Context registry</param>
 public SearchResultsListView(IContextRegistry contextRegistry)
 {
     // Configure ListView
     View               = View.Details;
     LabelEdit          = false;
     AllowColumnReorder = false;
     CheckBoxes         = false;
     FullRowSelect      = true;
     MultiSelect        = false;
     GridLines          = true;
     Sorting            = SortOrder.Ascending;
 }
Beispiel #53
0
 public Editor(
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,
     TreeLister treeLister,
     SchemaLoader schemaLoader)
 {
     m_contextRegistry  = contextRegistry;
     m_documentRegistry = documentRegistry;
     m_documentRegistry.ActiveDocumentChanged += documentRegistry_ActiveDocumentChanged;
     m_schemaLoader = schemaLoader;
     m_treeLister   = treeLister;
 }
Beispiel #54
0
        public DomNodePropertySearchService(
            IContextRegistry contextRegistry,
            IControlHostService controlHostService)
        {
            m_contextRegistry    = contextRegistry;
            m_controlHostService = controlHostService;

            // define root control
            m_rootControl      = new UserControl();
            m_rootControl.Name = "Search and Replace";
            m_rootControl.SuspendLayout();
            m_rootControl.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;

            // Create and add the search input control
            var domNodeSearchToolStrip = new DomNodeSearchToolStrip();

            SearchUI = domNodeSearchToolStrip;
            SearchUI.Control.Dock = DockStyle.None;
            m_rootControl.Controls.Add(SearchUI.Control);
            SearchUI.UIChanged += UIElement_Changed;

            _clearButton = new Button()
            {
                Text = "Clear"
            };
            _clearButton.Click    += (object sender, EventArgs args) => { m_contextRegistry.GetActiveContext <IQueryableContext>().Query(null); };
            _clearButton.Dock      = DockStyle.None;
            _clearButton.AutoSize  = true;
            _clearButton.FlatStyle = FlatStyle.Flat;
            _clearButton.FlatAppearance.BorderSize = 0;
            m_rootControl.Controls.Add(_clearButton);

            // Create and add the replace input control
            var domNodeReplaceToolStrip = new DomNodeReplaceToolStrip();

            // hack --  we can't set this property, because it's marked as "internal" in the
            //          ATF library
            // domNodeReplaceToolStrip.DomNodeSearchToolStrip = domNodeSearchToolStrip;
            ReplaceUI = domNodeReplaceToolStrip;
            ReplaceUI.Control.Dock = DockStyle.None;
            m_rootControl.Controls.Add(ReplaceUI.Control);
            ReplaceUI.UIChanged += UIElement_Changed;


            // Create and add the results output control
            ResultsUI = new DomNodeSearchResultsListView(m_contextRegistry);
            ResultsUI.Control.Dock = DockStyle.None;
            m_rootControl.Controls.Add(ResultsUI.Control);
            ResultsUI.UIChanged += UIElement_Changed;

            m_rootControl.Layout += controls_Layout;
            m_rootControl.ResumeLayout();
        }
Beispiel #55
0
 /// <summary>
 /// Constructor with IContextRegistry</summary>
 /// <param name="contextRegistry">Context registry</param>
 public SearchResultsListView(IContextRegistry contextRegistry)
 {
     // Configure ListView
     View = View.Details;
     LabelEdit = false;
     AllowColumnReorder = false;
     CheckBoxes = false;
     FullRowSelect = true;
     MultiSelect = false;
     GridLines = true;
     Sorting = SortOrder.Ascending;
 }
Beispiel #56
0
 public Editor(
     IControlHostService controlHostService,
     IDocumentService documentService,
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,
     DomTypes domTypes)
 {
     m_controlHostService = controlHostService;
     m_documentService    = documentService;
     m_contextRegistry    = contextRegistry;
     m_documentRegistry   = documentRegistry;
 }
Beispiel #57
0
        public EventListEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            m_contextRegistry.ActiveContextChanged += new EventHandler(contextRegistry_ActiveContextChanged);
            m_contextRegistry.ContextAdded += new EventHandler<ItemInsertedEventArgs<object>>(contextRegistry_ContextAdded);
            m_contextRegistry.ContextRemoved += new EventHandler<ItemRemovedEventArgs<object>>(contextRegistry_ContextRemoved);
        }
        public OpenSupportTicketTasks(IRepository<SupportTicket> supportTicketRepository, IContextRegistry contextRegistry,
            IRepository<Customer> customerRepository, IRepository<IssueType> issueTypeRepository) {

            if (supportTicketRepository == null) throw new ArgumentNullException("supportTicketRepository is null");
            if (issueTypeRepository == null) throw new ArgumentNullException("issueTypeRepository is null");
            if (customerRepository == null) throw new ArgumentNullException("customerRepository is null");
            if (contextRegistry == null) throw new ArgumentNullException("contextRegistry is null");

            _issueTypeRepository = issueTypeRepository;
            _supportTicketRepository = supportTicketRepository;
            _customerRepository = customerRepository;
            _contextRegistry = contextRegistry;
        }
Beispiel #59
0
        public GridPropertyEditor(
            ICommandService commandService,
            IControlHostService controlHostService,
            IContextRegistry contextRegistry)
        {
            m_commandService = commandService;
            m_controlHostService = controlHostService;
            m_contextRegistry = contextRegistry;

            Configure(out m_gridControl, out m_controlInfo);

            m_gridControl.MouseUp += gridControl_MouseUp;
        }
Beispiel #60
0
 public Editor(
     IControlHostService controlHostService,
     IDocumentService documentService,
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,
     SchemaLoader schemaLoader)
 {
     m_controlHostService = controlHostService;
     m_documentService = documentService;
     m_contextRegistry = contextRegistry;
     m_documentRegistry = documentRegistry;
     m_schemaLoader = schemaLoader;
 }