Example #1
0
		public FolderVM(Folder folder, IRecorder audioRecorder/*, IRecorder camera*/, AnimationStarter animationStarter)
		{
			_folder = folder;
			_audioRecorderView = audioRecorder;
			//_camera = camera;
			if (animationStarter == null) throw new ArgumentNullException("FolderVM ctor: animationStarter may not be null");
			_animationStarter = animationStarter;
		}
		public BriefcasePage()
        {
			LastNavigatedPageRegKey = App.LAST_NAVIGATED_PAGE_REG_KEY;
			NavigationCacheMode = NavigationCacheMode.Enabled;
			InitializeComponent();
			_animationStarter = AnimationsControl.AnimationStarter;
			//_animationStarter = new AnimationStarter(new Storyboard[] { UpdatingStoryboard, SuccessStoryboard, FailureStoryboard });
		}
		public SettingsPage()
		{
			LastNavigatedPageRegKey = App.LAST_NAVIGATED_PAGE_REG_KEY;
			NavigationCacheMode = NavigationCacheMode.Enabled; // LOLLO TODO test NavigationCacheMode.Required too
			InitializeComponent();
			// LOLLO NOTE with x:Bind set on a nullable bool property, such as ToggleButton.IsChecked, FallbackValue=True and FallbackValue=False cause errors.
			// Instead, use Binding ElementName=me, Path=....
			//MBView.DataContext = null; // otherwise, it will try something and run into binding errors. I am going to set its binding later.
			_animationStarter = AnimationsControl.AnimationStarter;
		}
Example #4
0
		public BinderCoverVM(Binder binder, AnimationStarter animationStarter)
		{
			if (binder == null) throw new ArgumentNullException("BinderCoverVM ctor: binder may not be null");
			if (animationStarter == null) throw new ArgumentNullException("BinderCoverVM ctor: animationStarter may not be null");

			_binder = binder;
			RaisePropertyChanged_UI(nameof(Binder));
			_metaBriefcase = MetaBriefcase.OpenInstance;
			if (_metaBriefcase == null) throw new ArgumentNullException("BinderCoverVM ctor: MetaBriefcase may not be null");
			RaisePropertyChanged_UI(nameof(MetaBriefcase));
			_animationStarter = animationStarter;
		}
		public AnimationsControl()
		{
			InitializeComponent();
			_animationStarter = new AnimationStarter(UpdatingStoryboard, SuccessStoryboard, FailureStoryboard);
		}
Example #6
0
		public BriefcaseVM(AnimationStarter animationStarter)
		{
			if (animationStarter == null) throw new ArgumentNullException("BriefcaseVM ctor: animationStarter may not be null");
			_animationStarter = animationStarter;
		}
Example #7
0
		public SettingsVM(Briefcase briefcase, AnimationStarter animationStarter)
		{
			lock (_instanceLocker)
			{
				_instance = this;

				_animationStarter = animationStarter;
				_backgroundTaskHelper = App.BackgroundTaskHelper;
				RaisePropertyChanged_UI(nameof(BackgroundTaskHelper));
				_briefcase = briefcase;
				RaisePropertyChanged_UI(nameof(Briefcase));
				//UpdateUnassignedFields();
			}
		}
		public FolderView()
		{
			DataContextChanged += OnDataContextChanged;
			InitializeComponent();
			_animationStarter = AnimationsControl.AnimationStarter;
		}