Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        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);
            }
        }