コード例 #1
0
		protected override async Task OpenMayOverrideAsync(object args = null)
		{
			_briefcase = Briefcase.GetCreateInstance();
			await _briefcase.OpenAsync();
			await _briefcase.OpenCurrentBinderAsync();
			RaisePropertyChanged_UI(nameof(Briefcase)); // notify UI once briefcase is open
		}
コード例 #2
0
		protected override async Task OpenMayOverrideAsync(object args = null)
		{
			_briefcase = Briefcase.GetCreateInstance();
			await _briefcase.OpenAsync();
			RaisePropertyChanged_UI(nameof(Briefcase)); // notify UI once briefcase is open

			await UpdateIsCanImportExportAsync().ConfigureAwait(false);

			if (IsExportingBinder)
			{
				string dbName = RegistryAccess.GetValue(ConstantData.REG_EXPORT_BINDER_DBNAME);
				await ContinueAfterExportBinderPickerAsync(await Pickers.GetLastPickedFolderAsync().ConfigureAwait(false), dbName, _briefcase).ConfigureAwait(false);
			}
			if (IsImportingBinder)
			{
				var dir = await Pickers.GetLastPickedFolderAsync().ConfigureAwait(false);
				//string step = RegistryAccess.GetValue(ConstantData.REG_IMPORT_BINDER_STEP);
				//if (step == "1")
				//{
				await ContinueImportBinderStep1Async(_briefcase, dir).ConfigureAwait(false);
				//}
				//else if (step == "2")
				//{
				//	string action = RegistryAccess.GetValue(ConstantData.REG_IMPORT_BINDER_STEP2_ACTION);
				//	if (action == ImportBinderOperations.Import.ToString())
				//	{
				//		await ContinueImportBinderStep2_Import_Async(_briefcase, dir).ConfigureAwait(false);
				//	}
				//	else if (action == ImportBinderOperations.Merge.ToString())
				//	{
				//		await ContinueImportBinderStep2_Merge_Async(_briefcase, dir).ConfigureAwait(false);
				//	}
				//	else
				//	{
				//		ContinueImportBinderStep2_Cancel();
				//	}
				//}
			}
		}