public ActGenElementEditPage(GingerCore.Actions.ActGenElement Act)
        {
            InitializeComponent();

            this.mAct = Act;

            GingerCore.General.FillComboFromEnumObj(ActionNameComboBox, Act.GenElementAction);
            GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(ActionNameComboBox, ComboBox.SelectedValueProperty, Act, "GenElementAction");

            Xoffset.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActGenElement.Fields.Xoffset), true);
            Yoffset.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActGenElement.Fields.Yoffset), true);
        }
Пример #2
0
        public ActGenElementEditPage(GingerCore.Actions.ActGenElement Act)
        {
            InitializeComponent();

            this.mAct = Act;

            App.FillComboFromEnumVal(ActionNameComboBox, Act.GenElementAction);
            App.ObjFieldBinding(ActionNameComboBox, ComboBox.SelectedValueProperty, Act, "GenElementAction");

            Xoffset.Init(mAct.GetOrCreateInputParam(ActGenElement.Fields.Xoffset), true);
            Yoffset.Init(mAct.GetOrCreateInputParam(ActGenElement.Fields.Yoffset), true);
        }