private void PopulateEEPROMDic() { if (detailsPage == null) { detailsPage = EEPROM_Version_Details_Page.GetInstance(); } if (t == null) { t = new TabControl(); } t.Multiline = true; t.Size = new System.Drawing.Size(this.Width, this.Height - (int)tableLayoutPanel1.RowStyles[1].Height); foreach (KeyValuePair <object, object> val in detailsPage.fieldDic) { TabPage tPage = new TabPage(); string output = ""; EEPROM_Props eepromTab = val.Key as EEPROM_Props; tPage.Text = eepromTab.text; tPage.AutoScroll = true; config.vIndent = 10; string parentName = "Settings"; string strutureTypeStr = StrutureTypes.FeatureSettings.ToString(); config.addBranchL(val, "Settings", 1, tPage); t.Controls.Add(tPage); } t.Dock = DockStyle.Fill; tableLayoutPanel1.Controls.Add(t, 0, 0); }
public static void SetValue(String node, object val) { EEPROM_Version_Details_Page detailsPage = EEPROM_Version_Details_Page.GetInstance(); string[] parts = node.Split('.'); isChangeValueSaved = false; SetValueIterate(detailsPage.fieldDic, parts, 1, val); }
/// <summary> /// Constructor to populate the settings from IVLConfig.xml /// </summary> public Settings_UCL() { InitializeComponent(); EEPROM_Version_Details_Page detailsPage = EEPROM_Version_Details_Page.GetInstance(); List <byte[]> arr = new List <byte[]>(); detailsPage.GetFields(arr); config = new Config_UC(); PopulateEEPROMDic(); }
public Form1() { InitializeComponent(); settings = new Settings_UCL(); EEPROM_Version_Details_Page page = EEPROM_Version_Details_Page.GetInstance(); int x = settings.detailsPage.fieldDic.Count; settings.Dock = DockStyle.Fill; panel2.Controls.Add(settings); }