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 frmSwitchboxSettings(frmMain CallingForm) { InitializeComponent(); mf = CallingForm; Boxes = new clsTextBoxes(mf); BuildBoxes(); }
public frmNanoSettings(frmMain CallingForm) { InitializeComponent(); mf = CallingForm; CKs = new CheckBox[] { ckUseMCP23017, ckNanoRelayOn, ckNanoFlowOn }; for (int i = 0; i < CKs.Length; i++) { CKs[i].CheckedChanged += tb_TextChanged; } TabEdited = new bool[2]; Boxes = new clsTextBoxes(mf); BuildBoxes(); }
public frmPCBsettings(frmMain CallingForm) { InitializeComponent(); mf = CallingForm; CKs = new CheckBox[] { ckUseRate, ckADS, ckRelayOn, ckFlowOn, ckSwapPitchRoll , ckInvertRoll, ckGyro, ckActuator }; for (int i = 0; i < CKs.Length; i++) { CKs[i].CheckedChanged += tb_TextChanged; } TabEdited = new bool[3]; Boxes = new clsTextBoxes(mf); BuildBoxes(); }
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; }