Пример #1
0
        public void RefreshToCurrentElement()
        {
            var currentElement = ArrowState.Self.CurrentArrowElementSave;

            if (currentElement != null)
            {
                string elementName = currentElement.Name;

                string prefix;

                IElement glueElement = null;

                if (currentElement.ElementType == DataTypes.ElementType.Screen)
                {
                    prefix      = "Screens/";
                    glueElement = ArrowState.Self.CurrentGlueProjectSave.Screens.FirstOrDefault(item => item.Name == prefix + elementName);
                }
                else
                {
                    prefix      = "Entities/";
                    glueElement = ArrowState.Self.CurrentGlueProjectSave.Entities.FirstOrDefault(item => item.Name == prefix + elementName);
                }
                if (glueElement != null)
                {
                    GluxManager.GlueProjectSave = ArrowState.Self.CurrentGlueProjectSave;
                    GluxManager.ShowElement(prefix + elementName);
                }
            }
        }
Пример #2
0
 public void ReloadCurrentElement()
 {
     if (GluxManager.CurrentElement != null)
     {
         GluxManager.ShowElement(GluxManager.CurrentElement.Name);
     }
     else
     {
         GluxManager.ClearEngine();
     }
 }
Пример #3
0
        internal void UpdateToSelectedElement()
        {
            var element = ArrowState.Self.CurrentGlueElement;

            if (element != null)
            {
                GluxManager.ShowElement(element.Name);
                GluxManager.Update();
                ArrowState.Self.CurrentArrowElementVm.Refresh();
                //ArrowCommands.Self.GuiCommands.RefreshSingleElementTreeView();
                SelectionManager.Self.UpdateToSelectedElementOrInstance();

                ArrowState.Self.RaiseCurrentArrowElementChangedEvent();
            }
            ArrowCommands.Self.Delete.PopulateDeleteMenuFromArrowState();
        }