public Model()
 {
     DiscoverredDevices = new IndependentList<ConnectableDevice>();
     Apps = new IndependentList<AppInfo>();
     Channels = new List<ChannelInfo>();
     selectedDevice = new ConnectableDevice();
 }
Esempio n. 2
0
 public Model()
 {
     DiscoverredDevices = new IndependentList <ConnectableDevice>();
     Apps           = new IndependentList <AppInfo>();
     Channels       = new List <ChannelInfo>();
     selectedDevice = new ConnectableDevice();
 }
Esempio n. 3
0
        public MainViewModel()
        {
            if (ViewModelHelper.IsInDesignMode)
            {
                var fakeList = new IndependentList<CodeRepositoryItem>();
                fakeList.Add(new CodeRepositoryItem("Test", "test", null, "OK"));
                fakeList.Add(new CodeRepositoryItem("Test2", "test", null, "Out of Date"));
                fakeList.Add(new CodeRepositoryItem("Test3", "test", null, "Merge Conflict"));
                this.ItemList = fakeList;
            }
            else
            {
                // todo inject these instead of newing them up
                this.appConfiguration = new AppConfiguration();
                this.codeRepositoryStore = new CodeRepositoryStore(this.appConfiguration);
                var updateServices = new List<ICodeRepositoryUpdateService>();
                var queryServices = new List<ICodeRepositoryQueryService>();
                var tfsCommandFactory = new TfsCommandFactory(new TfsCommandPathLocator());
                var tfsCommandOutputParser = new TfsCommandOutputParser();
                queryServices.Add(new CodeRepositoryQueryService(tfsCommandFactory, new TfsWorkspaceQueryService(tfsCommandFactory, tfsCommandOutputParser)));
                this.codeRepositoryMonitor = new CodeRepositoryMonitor(queryServices, updateServices);
                this.RetrieveItemsList();
            }

            this.InitCommands();
        }
Esempio n. 4
0
 public ConferenceService()
 {
     _sessions = new IndependentList <Session>
     {
         new Session
         {
             Id      = 1,
             Speaker = "Brian Sullivan",
             Title   = "Real-Time Web Programming with SignalR"
         },
         new Session
         {
             Id      = 2,
             Speaker = "Caleb Jenkins",
             Title   = "Coding Naked - TDD on the Edge"
         },
         new Session
         {
             Id      = 3,
             Speaker = "Casey Watson",
             Title   = "Building Massively Scalable Applications with Windows Azure"
         },
         new Session
         {
             Id      = 4,
             Speaker = "Eric Sowell",
             Title   = "Touchy Browser Applications"
         },
         new Session
         {
             Id      = 5,
             Speaker = "Latish Sehgal",
             Title   = "The .NET Ninja's Toolbelt"
         }
     };
 }