UI tweak to the FileManager, it now selects a profile based on host machine name.
This commit is contained in:
Binary file not shown.
@@ -145,7 +145,13 @@ namespace DataOrganizer
|
|||||||
foreach(var profile in Profiles)
|
foreach(var profile in Profiles)
|
||||||
SelectProfileComboBoxMainMenu.Items.Add(profile.Name);
|
SelectProfileComboBoxMainMenu.Items.Add(profile.Name);
|
||||||
|
|
||||||
if(Profiles.Count > 0) SelectProfileComboBoxMainMenu.SelectedIndex = 0;
|
if (Profiles.Count > 0)
|
||||||
|
{
|
||||||
|
if(Profiles.Count(x => x.MachineName == Environment.MachineName) == 1)
|
||||||
|
SelectProfileComboBoxMainMenu.SelectedIndex = Profiles.FindIndex(x => x.MachineName == Environment.MachineName);
|
||||||
|
else
|
||||||
|
SelectProfileComboBoxMainMenu.SelectedIndex = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RefreshForm()
|
private void RefreshForm()
|
||||||
|
|||||||
Reference in New Issue
Block a user