Exemple #1
0
        public Smart(Frame navigationService, ManagementScope scope)
        {
            InitializeComponent();
            _navigationService = navigationService;
            _dataContext       = new SMARTViewModel();

            ISmartBuilder builder = new SmartBuilder();

            builder.SetScope(scope)
            .SetDriveStorage()
            .SetViewModel(_dataContext)
            .Build();
            this.DataContext = _dataContext;
        }
Exemple #2
0
 public ISmartBuilder SetViewModel(SMARTViewModel viewModel)
 {
     _viewModel = viewModel;
     return(this);
 }