public AboutPanel() { InitializeComponent(); RuntimeData = RuntimeData.Instance; #if NOSTORE LogsGrid.Visibility = Visibility.Visible; #endif }
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)); }
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; } }
internal MetaBriefcaseOneDriveReaderWriter(Briefcase briefcase, RuntimeData runtimeData) { _briefcase = briefcase; _runtimeData = runtimeData; }
private MetaBriefcase(RuntimeData runtimeData, Briefcase briefcase) { _briefcase = briefcase; _runtimeData = runtimeData; _oneDriveReaderWriter = new MetaBriefcaseOneDriveReaderWriter(_briefcase, _runtimeData); _rubbishBin = new MetaBriefcaseRubbishBin(this); }
internal static MetaBriefcase GetInstance(RuntimeData runtimeData, Briefcase briefcase) { lock (_instanceLocker) { if (_instance == null) { _instance = new MetaBriefcase(runtimeData, briefcase); } return _instance; } }