private void button1_Click(object sender, EventArgs e)
        {
            string strStatus = ValidateInputs();

            if (!string.IsNullOrEmpty(strStatus))
            {
                MessageBox.Show(strStatus, "Directory Comparer");
                return;
            }

            string columnStr = "{0},{1},{2},{3},{4},{5}";

            columnStr = string.Format(columnStr,
                                      checkBox2.Checked.ToInt(),
                                      checkBox1.Checked.ToInt(),
                                      checkBox4.Checked.ToInt(),
                                      checkBox5.Checked.ToInt(),
                                      checkBox6.Checked.ToInt(),
                                      checkBox7.Checked.ToInt());

            DirectoryComparerBaseInfo.Preferences.Columns = ColumnItemHelper.GetColumns(columnStr);

            RegManager regManager = RegManager.getInstance();
            bool       status     = regManager.writeColumnPreferences(columnStr);

            status         = regManager.writeDefaultLeftDir(textBox1.Text);
            status         = regManager.writeDefaultRightDir(textBox2.Text);
            lblStatus.Text = status ? "Preferences saved" : "Errors were encountered";
        }
        private CompareResultsPreferences GetPreferences()
        {
            RegManager regManager           = RegManager.getInstance();
            string     columns              = regManager.getColumnPreferences();
            CompareResultsPreferences prefs = new CompareResultsPreferences();
            string finalCols = columns != string.Empty ? columns : "0,0,0,0,0,0";

            prefs.DefaultLeftPath  = regManager.getDefaultLeftDir();
            prefs.DefaultRightPath = regManager.getDefaultRightDir();
            prefs.Columns          = ColumnItemHelper.GetColumns(finalCols);
            return(prefs);
        }