Example #1
0
        private void timer_Init_Tick(object sender, EventArgs e)
        {
            this.timer_Init.Enabled = false;

            if (File.Exists(str_cfgIniPath))
            {
                ArrayList al_sections = ClassLib_RML.ReadSectionsFromINI(str_cfgIniPath);
                if (al_sections.Count > 0)
                {
                    for (int idx = 0; idx < al_sections.Count; idx++)
                    {
                        String str_bundle = ClassLib_RML.ReadeValueFromINI(al_sections[idx].ToString(), "Bundle", str_cfgIniPath);
                        String str_Folder = ClassLib_RML.ReadeValueFromINI(al_sections[idx].ToString(), "Folder", str_cfgIniPath);

                        if (String.IsNullOrEmpty(str_bundle) || String.IsNullOrWhiteSpace(str_bundle))
                        {
                            str_bundle = "N/A";
                        }

                        if (String.IsNullOrEmpty(str_Folder) || String.IsNullOrWhiteSpace(str_Folder))
                        {
                            str_Folder = "N/A";
                        }

                        al_Bundles.Add(str_bundle);
                        al_Folders.Add(str_Folder);
                    }
                }
            }
            else
            {
                File.Create(str_cfgIniPath);
            }
            this.btn_addSrc.Enabled = true;
        }