protected override async Task CloseMayOverrideAsync()
		{
			var vm = _vm;
			if (vm != null)
			{
				await vm.CloseAsync().ConfigureAwait(false);
				vm.Dispose();
			}
			_vm = null;

			await AnimationsControl.CloseAsync().ConfigureAwait(false);
		}
		protected override async Task OpenMayOverrideAsync(object args = null)
		{
			var briefcase = Briefcase.GetCreateInstance();
			await briefcase.OpenAsync();

			await AnimationsControl.OpenAsync();

			_vm = new SettingsVM(briefcase, _animationStarter);
			await _vm.OpenAsync();
			RaisePropertyChanged_UI(nameof(VM));

			MBView.Refresh();
		}
Esempio n. 3
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();
			}
		}