public StartScreenViewModel()
        {
            Item1x1 = new IndividualIconViewModel
                {
                    Caption = "GitHub",
                    Command = @"C:\Users\Kyle\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\GitHub.appref-ms",
                    ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/github-icon.png", UriKind.Relative)),
                };

            Item1x2 = new IndividualIconViewModel
                {
                    Caption = "VS 2012",
                    ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/VS2012.png", UriKind.Relative)),
                    Command = @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"
                };
            Item1x3 = new IndividualIconViewModel
                {
                    Caption = "Sublime",
                    ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/sublime_text.png", UriKind.Relative)),
                    Command = @"D:\Applications\Sublime Text 2\sublime_text.exe"
                };
            Item1x4 = new IndividualIconViewModel
                {
                    Caption = "GMusic",
                    ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/gmusic.png", UriKind.Relative)),
                    Command = "http://music.google.com/"
                };
        }
Esempio n. 2
0
        public StartScreenViewModel()
        {
            Item1x1 = new IndividualIconViewModel
            {
                Caption     = "GitHub",
                Command     = @"C:\Users\Kyle\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\GitHub.appref-ms",
                ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/github-icon.png", UriKind.Relative)),
            };

            Item1x2 = new IndividualIconViewModel
            {
                Caption     = "VS 2012",
                ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/VS2012.png", UriKind.Relative)),
                Command     = @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"
            };
            Item1x3 = new IndividualIconViewModel
            {
                Caption     = "Sublime",
                ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/sublime_text.png", UriKind.Relative)),
                Command     = @"D:\Applications\Sublime Text 2\sublime_text.exe"
            };
            Item1x4 = new IndividualIconViewModel
            {
                Caption     = "GMusic",
                ImageSource = new BitmapImage(new Uri(@"/GPSLauncher;component/Icons/ShortcutIcons/gmusic.png", UriKind.Relative)),
                Command     = "http://music.google.com/"
            };
        }
 public void InitsTheLaunchCommand()
 {
     var vm = new IndividualIconViewModel();
     Assert.NotNull(vm.LaunchCommand);
 }
            public void SetterSetsAndGetterGets()
            {
                var vm = new IndividualIconViewModel { ImageSource = "A Test String" };

                Assert.Equal("A Test String", vm.ImageSource);
            }
            public void ChangesTriggerPropertyChangedEvent()
            {
                var vm = new IndividualIconViewModel();

                vm.ShouldNotifyOn(x => x.ImageSource).When(x => x.ImageSource = "New Value");
            }
            public void SetterSetsAndGetterGets()
            {
                var vm = new IndividualIconViewModel { Command = "A Test String" };

                Assert.Equal("A Test String", vm.Command);
            }