void EditSlideshowDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SlideShow")
     {
         Click = new DelegateCommand(() => SlideShow.OnEdit());
     }
 }
Beispiel #2
0
        public FullScreen()
        {
            isInFullScreen = false;
            Description = "Show in fullscreen";
            Click = new DelegateCommand(() =>
            {
                var fullScreenService = this.GetDependency<IFullScreenService>();
                if (isInFullScreen)
                {
                    fullScreenService.GoOutFromFullScreen();
                    isInFullScreen = false;
                    Description = "Show in fullscreen";
                }
                else
                {
                    fullScreenService.GoIntoFullScreen();
                    isInFullScreen = true;
                    Description = "Exit fullscreen";
                }
            });
#if  SILVERLIGHT
            Icon = new FullScreenIcon();
#endif     
            
        }
Beispiel #3
0
 void AddWidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SlideShow")
     {
         Click = new DelegateCommand(() => SlideShow.OnAddSlide());
     }
 }
Beispiel #4
0
 void WidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Widget")
     {
         Click = new DelegateCommand(() => dialogService.Show(
             new WidgetDialog{ Widget = Widget , Progressbar = Widget.ViewProgressbar}, (result) => { }));
     }
 }
Beispiel #5
0
		public BeerOMeterViewModel()
		{
			Reset = new DelegateCommand();
			AnimationCompleted = new DelegateCommand();
			Save = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Beispiel #6
0
		public TeamPictureViewModel()
		{
			Delete = new DelegateCommand();
			Save = new DelegateCommand();
			TakePicture = new DelegateCommand();
			ToggleWebcamOnOff = new DelegateCommand();
			Refresh = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Beispiel #7
0
		public NoteViewModel()
		{
			Delete = new DelegateCommand();
			MoveUp = new DelegateCommand();
			MoveDown = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Beispiel #8
0
		public CorkboardSettingsViewModel()
		{
			AddPositiveNote = new DelegateCommand();
			AddNegativeNote = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}