private void OnAddNewConnection(object sender, RoutedEventArgs e) { ConnectToStorageAccountDialog inputDialog = new ConnectToStorageAccountDialog(); if (inputDialog.ShowDialog() == true) { StorageAccountConnectionInfo connection = new StorageAccountConnectionInfo(inputDialog.AccountName, inputDialog.DataConnectionString); _storageAccountConnections.Add(connection); RefreshView(_storageAccountConnections); } }