Пример #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            CompareResultsPreferences prefs = GetPreferences();

            txtFolder1.Text = prefs.DefaultLeftPath;
            txtFolder2.Text = prefs.DefaultRightPath;
        }
Пример #2
0
        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);
        }