コード例 #1
0
        public OldShellViewModel(AzureContextService azureContextService)
        {
            this.azureContextService     = azureContextService;
            Subscriptions                = new ObservableCollection <Subscription>();
            SelectedSubscription         = new Prop <Subscription>();
            SubscriptionsSelectorEnabled = new Prop <bool>();
            ResourceTypes                = new ObservableCollection <ResourceType>();
            SelectedResourceType         = new Prop <ResourceType>();
            ResourceTypesSelectorEnabled = new Prop <bool>();
            Resources                = new ObservableCollection <Resource>();
            SelectedResource         = new Prop <Resource>();
            ResourcesSelectorEnabled = new Prop <bool>();
            Metrics                         = new ObservableCollection <Metric>();
            SelectedMetric                  = new Prop <Metric>();
            MetricsSelectorEnabled          = new Prop <bool>();
            TimeGrains                      = new ObservableCollection <string>();
            SelectedTimeGrain               = new Prop <string>();
            TimeGrainsSelectorEnabled       = new Prop <bool>();
            MetricDimensions                = new ObservableCollection <Metric.MetricDimension>();
            SelectedMetricDimension         = new Prop <Metric.MetricDimension>();
            MetricDimensionsSelectorEnabled = new Prop <bool>();
            DimensionValues                 = new ObservableCollection <DimensionValue>();
            SelectedDimensionValue          = new Prop <DimensionValue>();
            DimensionValuesSelectorEnabled  = new Prop <bool>();
            var now = DateTime.Now;

            Start            = new Prop <DateTime>(now.AddDays(-10));
            End              = new Prop <DateTime>(now);
            LoadGraphEnabled = new Prop <bool>();
            Series           = new SeriesCollection();
            Labels           = new ObservableCollection <string>();
            MaxLabel         = new Prop <DateTime>();
            MinLabel         = new Prop <DateTime>();
            //_client = client;
        }
コード例 #2
0
 public AccountManagerViewModel(AzureContextService azureContextService)
 {
     this.azureContextService = azureContextService;
     Visible = new Prop <bool>();
     AddAccountsIsEnabled        = new Prop <bool>(true);
     AddAccountsSpinnerIsEnabled = new Prop <bool>(false);
     AddAccountContent           = new Prop <string>(addAccountEnabledContent);
     Accounts = new ObservableCollection <Account>();
 }
コード例 #3
0
 public ShellViewModel(AzureContextService azureContextService)
 {
     this.azureContextService = azureContextService;
     AccountManagerView       = new Prop <AccountManagerViewModel>();
     DashboardView            = new Prop <DashboardViewModel>();
     PageMenuView             = new Prop <PageMenuViewModel>();
     //var img = new BitmapImage(new Uri("pack://application:,,,/AzureDashboard.Wpf;Resources/MainWindowIcon.ico"));
     ////img.Freeze();
     //WindowIcon = new Prop<ImageSource>(img);
 }
コード例 #4
0
 public MainWindowViewModel(AzureContextService azureContextService)
 {
     this.azureContextService = azureContextService;
     AccountManagerView       = new Prop <AccountManagerViewModel>();
 }