Пример #1
0
 void EditSlideshowDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SlideShow")
     {
         Click = new DelegateCommand(() => SlideShow.OnEdit());
     }
 }
Пример #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     
            
        }
Пример #3
0
 void AddWidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SlideShow")
     {
         Click = new DelegateCommand(() => SlideShow.OnAddSlide());
     }
 }
Пример #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) => { }));
     }
 }
Пример #5
0
		public BeerOMeterViewModel()
		{
			Reset = new DelegateCommand();
			AnimationCompleted = new DelegateCommand();
			Save = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Пример #6
0
		public TeamPictureViewModel()
		{
			Delete = new DelegateCommand();
			Save = new DelegateCommand();
			TakePicture = new DelegateCommand();
			ToggleWebcamOnOff = new DelegateCommand();
			Refresh = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Пример #7
0
		public NoteViewModel()
		{
			Delete = new DelegateCommand();
			MoveUp = new DelegateCommand();
			MoveDown = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Пример #8
0
		public CorkboardSettingsViewModel()
		{
			AddPositiveNote = new DelegateCommand();
			AddNegativeNote = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}