コード例 #1
0
		public AboutPanel()
        {
            InitializeComponent();
            RuntimeData = RuntimeData.Instance;
#if NOSTORE
			LogsGrid.Visibility = Visibility.Visible;
#endif
		}
コード例 #2
0
		protected override async Task OpenMayOverrideAsync(object args = null)
		{
			var briefcase = Briefcase.GetCreateInstance();
			await briefcase.OpenAsync().ConfigureAwait(false);
			await briefcase.OpenCurrentBinderAsync().ConfigureAwait(false);

			_binder = briefcase.CurrentBinder;
			if (_binder != null)
			{
				await _binder.OpenCurrentFolderAsync();
			}
			RaisePropertyChanged_UI(nameof(Binder));

			_runtimeData = RuntimeData.Instance;
			RaisePropertyChanged_UI(nameof(RuntimeData));
		}
コード例 #3
0
		public static RuntimeData GetInstance(Briefcase briefcase, bool isLight)
		{
			lock (_instanceLocker)
			{
				if (_instance == null /*|| _instance._isDisposed*/ || _instance._isLight != isLight)
				{
					_instance = new RuntimeData(briefcase, isLight);
				}
				return _instance;
			}
		}
コード例 #4
0
		internal MetaBriefcaseOneDriveReaderWriter(Briefcase briefcase, RuntimeData runtimeData)
		{
			_briefcase = briefcase;
			_runtimeData = runtimeData;
		}
コード例 #5
0
		private MetaBriefcase(RuntimeData runtimeData, Briefcase briefcase)
		{
			_briefcase = briefcase;
			_runtimeData = runtimeData;

			_oneDriveReaderWriter = new MetaBriefcaseOneDriveReaderWriter(_briefcase, _runtimeData);
			_rubbishBin = new MetaBriefcaseRubbishBin(this);
		}
コード例 #6
0
		internal static MetaBriefcase GetInstance(RuntimeData runtimeData, Briefcase briefcase)
		{
			lock (_instanceLocker)
			{
				if (_instance == null)
				{
					_instance = new MetaBriefcase(runtimeData, briefcase);
				}
				return _instance;
			}
		}