From 9668bd85c1a24fe93f390ba2356e87d02e9d11f2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 10 May 2019 13:22:35 -0400 Subject: [PATCH] share page --- src/App/App.csproj | 3 + src/App/Pages/CollectionViewModel.cs | 16 +++ src/App/Pages/Vault/AddEditPage.xaml | 5 +- src/App/Pages/Vault/AddEditPage.xaml.cs | 17 +++ src/App/Pages/Vault/AddEditPageViewModel.cs | 27 ++-- src/App/Pages/Vault/SharePage.xaml | 81 +++++++++++ src/App/Pages/Vault/SharePage.xaml.cs | 38 ++++++ src/App/Pages/Vault/SharePageViewModel.cs | 142 ++++++++++++++++++++ src/App/Resources/AppResources.Designer.cs | 54 ++++++++ src/App/Resources/AppResources.resx | 18 +++ 10 files changed, 384 insertions(+), 17 deletions(-) create mode 100644 src/App/Pages/CollectionViewModel.cs create mode 100644 src/App/Pages/Vault/SharePage.xaml create mode 100644 src/App/Pages/Vault/SharePage.xaml.cs create mode 100644 src/App/Pages/Vault/SharePageViewModel.cs diff --git a/src/App/App.csproj b/src/App/App.csproj index 23318c747..679143e3b 100644 --- a/src/App/App.csproj +++ b/src/App/App.csproj @@ -38,6 +38,9 @@ GeneratorPage.xaml + + SharePage.xaml + CiphersPage.xaml diff --git a/src/App/Pages/CollectionViewModel.cs b/src/App/Pages/CollectionViewModel.cs new file mode 100644 index 000000000..5b072f0fc --- /dev/null +++ b/src/App/Pages/CollectionViewModel.cs @@ -0,0 +1,16 @@ +using Bit.Core.Utilities; + +namespace Bit.App.Pages +{ + public class CollectionViewModel : ExtendedViewModel + { + private bool _checked; + + public Core.Models.View.CollectionView Collection { get; set; } + public bool Checked + { + get => _checked; + set => SetProperty(ref _checked, value); + } + } +} diff --git a/src/App/Pages/Vault/AddEditPage.xaml b/src/App/Pages/Vault/AddEditPage.xaml index f1fc2f7c4..c90737121 100644 --- a/src/App/Pages/Vault/AddEditPage.xaml +++ b/src/App/Pages/Vault/AddEditPage.xaml @@ -16,6 +16,9 @@ + + + @@ -534,7 +537,7 @@ - +