public MainWindow() { componentContext = (App.Current as App).Services; s3 = componentContext.Resolve <AWSS3API>(); athena = componentContext.Resolve <AWSAthenaAPI>(); options = componentContext.Resolve <AthenaClientOptions>(); InitializeComponent(); s3Tree.ItemsSource = S3ItemsSource; tabQueries.ItemsSource = FormatedQuerySource; LoadS3(); }
public MainWindow() { componentContext = (App.Current as App).Services; var encryptedOptions = componentContext.Resolve <EncryptedOptions>(); DecryptedOptions decryptedOptions = LoadOptions(encryptedOptions); if (decryptedOptions == null) { Application.Current.Shutdown(); return; } s3 = new AWSS3API(decryptedOptions.AWSS3Options); athena = new AWSAthenaAPI(decryptedOptions.AWSAthenaOptions); options = decryptedOptions.AthenaClientOptions; InitializeComponent(); s3Tree.ItemsSource = S3ItemsSource; tabQueries.ItemsSource = FormatedQuerySource; dgJobList.ItemsSource = QueryTasks; LoadS3(); }