This repository has been archived by the owner on Jun 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
159 changed files
with
27,831 additions
and
3,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/.vs | ||
*.user | ||
**/bin | ||
**/obj | ||
**/packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
远程桌面管理器/WHostGroupBox.Designer.cs → RdpTest/Control/HostGroupBox.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.