public Form1()
        {
            InitializeComponent();

            String saved_path = RegistryHelper.GetSetting("Settings", "RootFolder", "");

            if (saved_path == "")
            {
                textBox1.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            }
            else
            {
                textBox1.Text = saved_path;
            }

            showStatus("Stopped", false);
            numericUpDown1.Value = Convert.ToInt32(RegistryHelper.GetSetting("Settings", "Interval", "60"));
            numericUpDown2.Value = Convert.ToInt32(RegistryHelper.GetSetting("Settings", "Cleanup", "10080"));

            GetSettingIntoCheckbox("Settings", "RecycleBin", "1", checkBox2);

            // hide this button; it's useful only during debugging
            button4.Visible = false;
        }
        private void GetSettingIntoCheckbox(string Section, string Key, string Default, CheckBox control)
        {
            string value = RegistryHelper.GetSetting(Section, Key, Default);

            control.Checked = (value == "1");
        }