Skip to content

Commit 898bf3d

Browse files
committed
Sort the subscription list for issue #121 and also clear connection types when swithing automation accounts.
1 parent 8895500 commit 898bf3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AutomationISE/AutomationISEControl.xaml.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public async Task downloadAllAssets()
280280
{
281281
try
282282
{
283+
connectionTypes.Clear();
283284
await AutomationAssetManager.DownloadAllFromCloud(iseClient.currWorkspace, iseClient.automationManagementClient, iseClient.accountResourceGroups[iseClient.currAccount].Name, iseClient.currAccount.Name, getEncryptionCertificateThumbprint(), connectionTypes);
284285
}
285286
catch (Exception exception)
@@ -476,7 +477,8 @@ private async void loginButton_Click(object sender, RoutedEventArgs e)
476477
if (subscriptions.Count > 0)
477478
{
478479
endBackgroundWork(Properties.Resources.FoundSubscriptions);
479-
subscriptionComboBox.ItemsSource = subscriptions;
480+
var subscriptionList = subscriptions.OrderBy(x => x.Name);
481+
subscriptionComboBox.ItemsSource = subscriptionList;
480482
subscriptionComboBox.DisplayMemberPath = "Name";
481483
foreach (AutomationISEClient.SubscriptionObject selectedSubscription in subscriptionComboBox.Items)
482484
{

0 commit comments

Comments
 (0)