Ejemplo n.º 1
0
        public override void DoubleClickHandler()
        {
            base.DoubleClickHandler();

            Namable element = Item.GetReference();

            if (element != null)
            {
                MainWindow mainWindow = GuiUtils.MdiWindow;

                if (mainWindow.DataDictionaryWindow != null)
                {
                    if (mainWindow.DataDictionaryWindow.TreeView.Select(element) != null)
                    {
                        mainWindow.DataDictionaryWindow.Focus();
                    }
                }
                if (mainWindow.SpecificationWindow != null)
                {
                    if (mainWindow.SpecificationWindow.TreeView.Select(element) != null)
                    {
                        mainWindow.SpecificationWindow.Focus();
                    }
                }
                if (mainWindow.TestWindow != null)
                {
                    if (mainWindow.TestWindow.TreeView.Select(element) != null)
                    {
                        mainWindow.TestWindow.Focus();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public override void visit(Generated.Namable obj, bool visitSubNodes)
        {
            Namable namable = (Namable)obj;

            namable.ClearFullName();

            base.visit(obj, visitSubNodes);
        }
Ejemplo n.º 3
0
            /// <summary>
            ///     Clears the cached FullName for all namables
            /// </summary>
            /// <param name="obj"></param>
            /// <param name="visitSubNodes"></param>
            public override void visit(Generated.Namable obj, bool visitSubNodes)
            {
                Namable namable = (Namable)obj;

                namable.ClearFullName();

                Variable variable = namable as Variable;

                if (variable != null)
                {
                    variable.Value = null;
                }

                base.visit(obj, visitSubNodes);
            }
Ejemplo n.º 4
0
 /// <summary>
 ///     Copies information from an element
 /// </summary>
 /// <param name="aNamable">Element to be copied</param>
 public void CopyFrom(Namable aNamable)
 {
     Name = aNamable.Name;
     ShortcutName = aNamable.FullName;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Copies information from an element
 /// </summary>
 /// <param name="aNamable">Element to be copied</param>
 public void CopyFrom(Namable aNamable)
 {
     Name         = aNamable.Name;
     ShortcutName = aNamable.FullName;
 }