public ucDesign(clsDesign designSelected) { InitializeComponent(); designClass = designSelected; //templateId = Guid.NewGuid(); templateId = designSelected.designId; countSaveClick = 1; rvm = new rightMenuViewModel(); controlCreator = new createControl(); listViewDesignBgClass = new clsListViewDesignBackground(); controlCollection = new clsControls(); textBlockCollection = new clsTextblocks(); imageCollection = new clsImages(); buttonCollection = new clsButtons(); textBoxCollection = new clsTextBoxes(); comboboxCollection = new clsComboBoxes(); datePickerCollection = new clsDatePickers(); buttonActionClass = new clsButtonAction(); Switcher.pageSwitcher = this; dictionaryForFieldNameAndInputType = new Dictionary <string, string>(); dictionaryForComboboxItem = new Dictionary <string, List <string> >(); dictionaryInputDatatype = new Dictionary <string, string>(); dictionaryForFieldNameAndId = new Dictionary <string, int>(); //clsXmlInteraction.createFirstXml(templateId); loadDesignedTemplate(); tbDescription.Text = designSelected.description; DataContext = this; }
public ucMain(clsListViewDesignBackground cLvdbg) { InitializeComponent(); this.cLvdbg = cLvdbg; updateTb(); DataContext = this; }