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(); }
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(); }
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(); }
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(); }