Ejemplo n.º 1
0
        /// <summary>
        /// Loads the settings.
        /// </summary>
        private void LoadSettings()
        {
            try
            {
                var sr = new SettingsReader("FLV Extract", "settings.txt");
                string val;

                if ((val = sr.Load("ExtractVideo")) != null)
                {
                    chkVideo.Checked = (val != "0");
                }
                if ((val = sr.Load("ExtractTimeCodes")) != null)
                {
                    chkTimeCodes.Checked = (val != "0");
                }
                if ((val = sr.Load("ExtractAudio")) != null)
                {
                    chkAudio.Checked = (val != "0");
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }