mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
ModernKeePassLib custom PCL version
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user