Esempio n. 1
0
 public AddAPIModelSelectTypePage()
 {
     InitializeComponent();
     ControlsBinding.FillComboFromEnumType(APITypeComboBox, typeof(eAPIType), null);
     APITypeComboBox.Style = this.FindResource("$FlatInputComboBoxStyle") as Style;
     APITypeComboBox.Text  = eAPIType.WSDL.ToString();
     XMLTemplatesGrid.SetTitleLightStyle = true;
     SetFieldsGrid();
 }
Esempio n. 2
0
        public AddOptionalValuesModelSelectTypePage(ApplicationAPIModel AAMB)
        {
            InitializeComponent();
            mAAMB = AAMB;
            importOptionalValues.ParameterType = ImportOptionalValuesForParameters.eParameterType.Local;
            ControlsBinding.FillComboFromEnumType(xSourceTypeComboBox, typeof(eSourceType), null);

            xSourceTypeComboBox.Style = this.FindResource("$FlatInputComboBoxStyle") as Style;
            SetFieldsGrid(); //XML & JSON
            SetDefaultPresentation();
        }
Esempio n. 3
0
        public AddOptionalValuesModelSelectTypePage(ObservableList <GlobalAppModelParameter> GlobalParamterList)
        {
            InitializeComponent();
            mGlobalParamterList = GlobalParamterList;
            importOptionalValues.ParameterType = ImportOptionalValuesForParameters.eParameterType.Global;
            ControlsBinding.FillComboFromEnumType(xSourceTypeComboBox, typeof(eSourceType), new List <object>()
            {
                eSourceType.Excel, eSourceType.DB
            });

            xSourceTypeComboBox.Style = this.FindResource("$FlatInputComboBoxStyle") as Style;
            SetFieldsGrid(); //XML & JSON
            SetDefaultPresentation();
        }
Esempio n. 4
0
        public AddOptionalValuesModelSelectTypePage(eOptionalValuesTargetType OptionalValuesTargetType)
        {
            InitializeComponent();
            mOptionalValuesTargetType = OptionalValuesTargetType;
            switch (mOptionalValuesTargetType)
            {
            case eOptionalValuesTargetType.ModelLocalParams:
                ControlsBinding.FillComboFromEnumType(xSourceTypeComboBox, typeof(eSourceType), null);
                break;

            case eOptionalValuesTargetType.GlobalParams:
                ControlsBinding.FillComboFromEnumType(xSourceTypeComboBox, typeof(eSourceType), new List <object>()
                {
                    eSourceType.Excel, eSourceType.DB
                });
                break;
            }

            xSourceTypeComboBox.Style = this.FindResource("$FlatInputComboBoxStyle") as Style;
            SetFieldsGrid(); //XML & JSON
            SetDefaultPresentation();
        }