ModernKeePassLib custom PCL version

This commit is contained in:
2017-09-22 15:40:24 +02:00
parent baba70e56d
commit a43bc20eb3
98 changed files with 6049 additions and 3038 deletions

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2014 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,21 +17,14 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// BERT TODO: Removed completely for the time being */
#if TODO
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Globalization;
using System.IO;
using System.Security.Cryptography;
using System.Drawing;
using ModernKeePassLib.Utility;
@@ -46,8 +39,8 @@ namespace ModernKeePassLib.Translation
private const string m_strControlRelative = @"%c";
internal const NumberStyles m_nsParser = NumberStyles.AllowLeadingSign |
NumberStyles.AllowDecimalPoint;
internal const NumberStyles m_nsParser = (NumberStyles.AllowLeadingSign |
NumberStyles.AllowDecimalPoint);
internal static readonly CultureInfo m_lclInv = CultureInfo.InvariantCulture;
private string m_strPosX = string.Empty;
@@ -116,7 +109,7 @@ namespace ModernKeePassLib.Translation
else { Debug.Assert(false); }
}
#if !KeePassLibSD
#if (!KeePassLibSD && !KeePassRT)
internal void ApplyTo(Control c)
{
Debug.Assert(c != null); if(c == null) return;
@@ -271,7 +264,7 @@ namespace ModernKeePassLib.Translation
return m_strMemberName.CompareTo(kpOther.Name);
}
#if !KeePassLibSD
#if (!KeePassLibSD && !KeePassRT)
private static readonly Type[] m_vTextControls = new Type[] {
typeof(MenuStrip), typeof(PictureBox), typeof(ListView),
typeof(TreeView), typeof(ToolStrip), typeof(WebBrowser),
@@ -313,8 +306,8 @@ namespace ModernKeePassLib.Translation
if(c is Form)
{
WriteCpiParam(sb, c.ClientSize.Width.ToString());
WriteCpiParam(sb, c.ClientSize.Height.ToString());
WriteCpiParam(sb, c.ClientSize.Width.ToString(KpccLayout.m_lclInv));
WriteCpiParam(sb, c.ClientSize.Height.ToString(KpccLayout.m_lclInv));
}
else // Normal control
{
@@ -402,5 +395,3 @@ namespace ModernKeePassLib.Translation
#endif
}
}
#endif

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2014 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,9 +17,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* Bert TODO: completely removed for the time being */
#if TODO
using System;
using System.Collections.Generic;
using System.Text;
@@ -69,6 +66,7 @@ namespace ModernKeePassLib.Translation
}
}
#if (!KeePassLibSD && !KeePassRT)
private Form m_formEnglish = null;
[XmlIgnore]
public Form FormEnglish
@@ -77,7 +75,6 @@ namespace ModernKeePassLib.Translation
set { m_formEnglish = value; }
}
#if !KeePassLibSD
public void ApplyTo(Form form)
{
Debug.Assert(form != null); if(form == null) throw new ArgumentNullException("form");
@@ -107,5 +104,3 @@ namespace ModernKeePassLib.Translation
#endif
}
}
#endif //TODO

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2014 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,9 +17,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* BERT TODO: Completely removed for the time being */
#if TODO
using System;
using System.Collections.Generic;
using System.Text;
@@ -69,7 +66,7 @@ namespace ModernKeePassLib.Translation
return dict;
}
#if !KeePassLibSD
#if (!KeePassLibSD && !KeePassRT)
public void ApplyTo(ToolStripItemCollection tsic)
{
if(tsic == null) throw new ArgumentNullException("tsic");
@@ -100,5 +97,3 @@ namespace ModernKeePassLib.Translation
#endif
}
}
#endif //TODO

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2014 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2014 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,9 +17,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* Bert TODO: completely removed for the time being */
#if TODO
using System;
using System.Collections.Generic;
using System.Text;
@@ -156,7 +153,7 @@ namespace ModernKeePassLib.Translation
return new Dictionary<string, string>();
}
#if !KeePassLibSD
#if (!KeePassLibSD && !KeePassRT)
public void ApplyTo(Form form)
{
if(form == null) throw new ArgumentNullException("form");
@@ -253,5 +250,3 @@ namespace ModernKeePassLib.Translation
#endif
}
}
#endif

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2014 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by