Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
简化项目,修复不支持 NLA 的 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
xunki committed Feb 7, 2018
1 parent 9889d28 commit b099cc9
Show file tree
Hide file tree
Showing 159 changed files with 27,831 additions and 3,044 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/.vs
*.user
**/bin
**/obj
**/packages
25 changes: 25 additions & 0 deletions RdpTest.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2008
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RdpTest", "RdpTest\RdpTest.csproj", "{1A282828-C161-4293-BD0F-3DAA8183A32C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1A282828-C161-4293-BD0F-3DAA8183A32C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A282828-C161-4293-BD0F-3DAA8183A32C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A282828-C161-4293-BD0F-3DAA8183A32C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A282828-C161-4293-BD0F-3DAA8183A32C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8CC8E13C-B621-4B9B-ACD2-4143B3A9B670}
EndGlobalSection
EndGlobal
22 changes: 22 additions & 0 deletions RdpTest/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>

<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v13.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
</providers>
</entityFramework>

</configuration>
30 changes: 30 additions & 0 deletions RdpTest/Control/HostGroupBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.ComponentModel;
using System.Windows.Forms;

namespace RdpTest.Control
{
public partial class HostGroupBox : UserControl
{
public HostGroupBox()
{
InitializeComponent();
}

private string _text = "";
[Description("标题信息")]
public new string Text
{
get => _text;
set
{
_text = value;
lbText.Text = $"<b><font face=\"微软雅黑\" size=\"18\">{_text}</font></b>";
}
}

public void AddControl(System.Windows.Forms.Control control)
{
Body.Controls.Add(control);
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
27 changes: 27 additions & 0 deletions RdpTest/DbHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Data;
using System.Data.SQLite;
using System.IO;
using RdpTest.Properties;

namespace RdpTest
{
public class Db
{
static Db()
{
var path = AppDomain.CurrentDomain.BaseDirectory + "config.wdb";

//检查数据库是否存在,不在则新建
if (!File.Exists(path))
File.WriteAllBytes(path, Resources.Db);

//初始化数据库连接串
Connection = new SQLiteConnection($"Data Source={path};Pooling=true;FailIfMissing=false");
Connection.Open();
}

public static readonly IDbConnection Connection;

}
}
242 changes: 242 additions & 0 deletions RdpTest/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b099cc9

Please sign in to comment.