Exemple #1
0
 private void RestoreLastDataUsed()
 {
     // If the last used data is not null or a white space and the item exists
     if (!string.IsNullOrWhiteSpace(Properties.Settings.Default.LastData) && DataList.FindStringExact(Properties.Settings.Default.LastData) != -1)
     {
         // Get the number of the index and set it as selected
         DataList.SelectedIndex = DataList.FindStringExact(Properties.Settings.Default.LastData);
     }
 }