Esempio n. 1
0
        // -------------------------------------------------------------------
        // Constructors
        // -------------------------------------------------------------------

        public DialogConditions(EventCommandConditions conditions)
        {
            InitializeComponent();

            Model = (EventCommandConditions)conditions.CreateCopy();

            conditionsPanel.InitializeListParameters(Model.Tree);
        }
Esempio n. 2
0
            // -------------------------------------------------------------------
            // CreateCopy
            // -------------------------------------------------------------------

            public SystemEventPage CreateCopy()
            {
                NTree <EventCommand> treeCommandsCopy = new NTree <EventCommand>(null);

                CopyTreeNode(treeCommandsCopy, CommandsTree);

                return(new SystemEventPage(Graphic.CreateCopy(), GraphicDrawType, Options.CreateCopy(), Trigger, (EventCommandConditions)ConditionsTree.CreateCopy(), treeCommandsCopy));
            }