mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Changed implementation of sample data
Creating a new entry does not create an useless history value WIP import data
This commit is contained in:
@@ -204,7 +204,7 @@ namespace ModernKeePass.ViewModels
|
||||
private readonly IDatabaseService _database;
|
||||
private readonly IResourceService _resource;
|
||||
private bool _isEditMode;
|
||||
private bool _isDirty;
|
||||
private bool _isDirty = true;
|
||||
private bool _isRevealPassword;
|
||||
private double _passwordLength = 25;
|
||||
private bool _isVisible = true;
|
||||
|
@@ -1,5 +1,7 @@
|
||||
using Windows.Storage;
|
||||
using System;
|
||||
using Windows.Storage;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using ModernKeePass.Converters;
|
||||
using ModernKeePass.Interfaces;
|
||||
using ModernKeePassLib;
|
||||
|
||||
@@ -23,14 +25,16 @@ namespace ModernKeePass.ViewModels
|
||||
|
||||
private void CreateSampleData(IDatabaseService database)
|
||||
{
|
||||
var converter = new IntToSymbolConverter();
|
||||
|
||||
var bankingGroup = database.RootGroup.AddNewGroup("Banking");
|
||||
bankingGroup.IconId = (int) Symbol.Calculator;
|
||||
bankingGroup.IconId = (int)converter.ConvertBack(Symbol.Calculator, null, null, string.Empty);
|
||||
|
||||
var emailGroup = database.RootGroup.AddNewGroup("Email");
|
||||
emailGroup.IconId = (int) Symbol.Mail;
|
||||
emailGroup.IconId = (int)converter.ConvertBack(Symbol.Mail, null, null, string.Empty);
|
||||
|
||||
var internetGroup = database.RootGroup.AddNewGroup("Internet");
|
||||
internetGroup.IconId = (int) Symbol.World;
|
||||
internetGroup.IconId = (int)converter.ConvertBack(Symbol.World, null, null, string.Empty);
|
||||
|
||||
var sample1 = database.RootGroup.AddNewEntry();
|
||||
sample1.Name = "Sample Entry";
|
||||
|
Reference in New Issue
Block a user