public MainWindow()
        {
            InitializeComponent();
            new BluEnergyXDesignerStart().ShowDialog();
            
            errorService = new ValidationErrorService(this.messageListBox);

            originalTitle = this.Title;
            //register designers for the standard activities
            DesignerMetadata dm = new DesignerMetadata();
            dm.Register();
            //toolbox
            toolboxControl = CreateToolbox();
            toolboxArea.Child = toolboxControl;
            CreateContextMenu();

            InitializeDesigner();
            StartNewWorkflow();

            //override designer for the standard While activity
            AttributeTableBuilder atb = new AttributeTableBuilder();
            atb.AddCustomAttributes(typeof(While), new DesignerAttribute(typeof(ActivityLibrary.Design.MyWhileDesigner)));
            MetadataStore.AddAttributeTable(atb.CreateTable());


        }
Пример #2
0
 private void RegisterMetadata()
 {
     DesignerMetadata metaData = new DesignerMetadata();
     metaData.Register();
     AttributeTableBuilder builder = new AttributeTableBuilder();
     MetadataStore.AddAttributeTable(builder.CreateTable());
 }
    private void Init()
    {
        //Register designers for the standard activities
        DesignerMetadata metaData = new DesignerMetadata();
        metaData.Register();

        errorService = new ValidationErrorService(this.messageListBox);

        this.InitializeDesigner();
    }
Пример #4
0
        public WorkflowEditor()
        {
            InitializeComponent();

            // Container für Benachrichtigungen anlegen
            Messages = new ObservableCollection<EditorMessage>();

            var dm = new DesignerMetadata();
            dm.Register();

            InitializeWorkflow();
        }
Пример #5
0
        public WorkflowEditor()
        {
            var dm = new DesignerMetadata();
            dm.Register();
            Designer = new WorkflowDesigner();
            Designer.Load(new Sequence());
            Content = Designer.View;
            IsSelectedChanged += (sender, args) =>
            {
                HandleSelectionChanged();
            };

            IsActiveChanged += (sender, args) =>
            {
                HandleSelectionChanged();
            };
        }
        public MainWindow()
        {
            InitializeComponent();

            _designer = new WorkflowDesigner();

            Loaded += (s, e) => Layout.Load(dockingManager);
            Closed += (s, e) => Layout.Save(dockingManager);

            DesignerMetadata dm = new DesignerMetadata();
            dm.Register();

            toolboxBorder.Child = ToolboxService.GetToolboxControl();
            propertiesBorder.Child = _designer.PropertyInspectorView;
            outlineBorder.Child = _designer.OutlineView;
            designerBorder.Child = _designer.View;

            _designer.Load(new Sequence());

            DataContext = new MainWindowViewModel(dockingManager, _designer);
        }
 private void RegisterMetadata()
 {
     DesignerMetadata dm = new DesignerMetadata();
     dm.Register();
 }
Пример #8
0
 private static void RegisterMetadata()
 {
     var metaData = new DesignerMetadata();
     metaData.Register();
 }