Пример #1
0
        public Form1()
        {
            InitializeComponent();
            folderPathEntries = new RecentEntries(sourceFolderPathComboBox.Name);

            var recentEntriesList = folderPathEntries.GetEntires().ToList();

            if (recentEntriesList.Count > 0)
            {
                sourceFolderPathComboBox.DataSource    = recentEntriesList;
                sourceFolderPathComboBox.SelectedIndex = 0;
            }
        }
Пример #2
0
 private void UpdateLastEntries()
 {
     folderPathEntries.AddAndSaveEntry(sourceFolderPathComboBox.Text);
     sourceFolderPathComboBox.DataSource = folderPathEntries.GetEntires().ToList();
 }