WIP with data binding - bis...

This commit is contained in:
2017-09-14 18:33:29 +02:00
parent 97d69c07cb
commit dd9d848618
7 changed files with 13 additions and 18 deletions

Binary file not shown.

View File

@@ -121,6 +121,7 @@
<Compile Include="ViewModels\DatabaseVm.cs" />
<Compile Include="ViewModels\EntryVm.cs" />
<Compile Include="ViewModels\GroupVm.cs" />
<Compile Include="ViewModels\Test.cs" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">

View File

@@ -14,6 +14,7 @@ namespace ModernKeePass.ViewModels
public string URL { get; private set; }
public string Notes { get; private set; }
public EntryVm() { }
public EntryVm(PwEntry entry)
{
Title = entry.Strings.GetSafe(PwDefs.TitleField).ReadString();

View File

@@ -17,6 +17,8 @@ namespace ModernKeePass.ViewModels
}
}
public GroupVm() { }
public GroupVm(PwGroup group)
{
Name = group.Name;

View File

@@ -0,0 +1,8 @@

namespace ModernKeePass.ViewModels
{
public class Test
{
public string Title { get; set; }
}
}

View File

@@ -1,6 +1,6 @@
<XamlCompilerSaveState>
<ReferenceAssemblyList>
<ReferenceAssembly PathName="c:\users\gbe\source\repos\modernkeepass\packages\modernkeepasslib.2.19.0.27564\lib\netstandard1.2\modernkeepasslib.dll" HashGuid="29b95f3b-9b53-5341-fc4d-d6dbb7ef4dbc" />
<ReferenceAssembly PathName="c:\users\gbe\source\repos\modernkeepass\packages\modernkeepasslib.2.19.2910\lib\x86\netstandard1.2\modernkeepasslib.dll" HashGuid="faaa9e31-5da0-29eb-3a86-b4eb77c4ada5" />
<ReferenceAssembly PathName="c:\users\gbe\source\repos\modernkeepass\packages\system.runtime.interopservices.runtimeinformation.4.3.0\lib\win8\system.runtime.interopservices.runtimeinformation.dll" HashGuid="6560d00f-0bb0-0755-5423-c4e1bf779127" />
</ReferenceAssemblyList>
</XamlCompilerSaveState>

View File

@@ -111,9 +111,6 @@
"lib/netstandard1.0/_._": {}
}
},
"NuSpec.ReferenceGenerator/1.4.2": {
"type": "package"
},
"runtime.native.System/4.3.0": {
"type": "package",
"dependencies": {
@@ -778,19 +775,6 @@
"lib/netstandard1.0/_._"
]
},
"NuSpec.ReferenceGenerator/1.4.2": {
"sha512": "0AA2wcMaE84hDxzQOdRi2K2SGgEnJQ4LG6MyTrPvyjjyzeOT1hpUJk/w9NX5QAJy1T5eE7r3wPLq1rALr5oPaQ==",
"type": "package",
"files": [
"NuSpec.ReferenceGenerator.1.4.2.nupkg.sha512",
"NuSpec.ReferenceGenerator.nuspec",
"build/dotnet/NuSpec.ReferenceGenerator.targets",
"build/portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10/NuSpec.ReferenceGenerator.targets",
"tools/RefGen.exe",
"tools/RefGen.exe.config",
"tools/RefGen.pdb"
]
},
"runtime.native.System/4.3.0": {
"sha512": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==",
"type": "package",
@@ -3002,7 +2986,6 @@
"": [
"Microsoft.NETCore.Portable.Compatibility >= 1.0.2",
"NETStandard.Library >= 2.0.0",
"NuSpec.ReferenceGenerator >= 1.4.2",
"System.Net.Requests >= 4.3.0",
"System.Runtime.WindowsRuntime >= 4.3.0",
"System.Xml.XmlSerializer >= 4.3.0"