public EditStoreProcedure(StoreProcedureModel model) { InitializeComponent(); storeProcedure = model; txtProcedureName.Text = model.Name; txtScript.Text = model.Script; foreach (ParameterModel parameter in model.parameters) { wrapper.Children.Add(new Parameter() { lblParameter = { Content = parameter.Name }, cmbValueType = { Text = parameter.Type }, Margin = new Thickness(0, 0, 0, 3) }); } }
public StoreProcedure(StoreProcedureModel storeProcedure, List <StoreProcedureModel> storeProcedures) { InitializeComponent(); model = storeProcedure; procedures = storeProcedures; }