Example #1
0
        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;
        }
Example #2
0
 public clsXmlInteraction(Guid templateId,
                          clsListViewDesignBackground listViewBgClass,
                          clsControls controlCollection,
                          clsTextblocks textBlockCollection,
                          clsImages imageCollection,
                          clsButtons buttonCollection,
                          clsTextBoxes textBoxCollection,
                          clsComboBoxes comboboxCollection,
                          clsDatePickers datePickerCollection)
 {
     this.templateId           = templateId.ToString();
     this.listViewBgClass      = listViewBgClass;
     this.controlCollection    = controlCollection;
     this.textBlockCollection  = textBlockCollection;
     this.imageCollection      = imageCollection;
     this.buttonCollection     = buttonCollection;
     this.textBoxCollection    = textBoxCollection;
     this.comboboxCollection   = comboboxCollection;
     this.datePickerCollection = datePickerCollection;
 }