예제 #1
0
        // -------------------------------------------------------------------
        // Constructors
        // -------------------------------------------------------------------

        public DialogConditions(EventCommandConditions conditions)
        {
            InitializeComponent();

            Model = (EventCommandConditions)conditions.CreateCopy();

            conditionsPanel.InitializeListParameters(Model.Tree);
        }
예제 #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));
            }