コード例 #1
0
		public static BackgroundTaskHelper GetInstance()
		{
			lock (_instanceLocker)
			{
				if (_instance == null)
				{
					_instance = new BackgroundTaskHelper();
				}
				return _instance;
			}
		}
コード例 #2
0
ファイル: SettingsVM.cs プロジェクト: lolluslollus/UniFiler10
		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();
			}
		}