Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static EEPROM_Version_Details_Page GetInstance()
 {
     if (detailsPage == null)
     {
         detailsPage = new EEPROM_Version_Details_Page();
     }
     return(detailsPage);
 }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        /// <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();
        }
Exemplo n.º 5
0
        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);
        }