Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
DataEditorX
Commits
aed623a0
Commit
aed623a0
authored
May 19, 2014
by
247321453
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
ccf4f16b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
357 additions
and
454 deletions
+357
-454
DataEditorX/Core/DataBase.cs
DataEditorX/Core/DataBase.cs
+11
-4
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+56
-274
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+286
-172
DataEditorX/DataEditForm.resx
DataEditorX/DataEditForm.resx
+0
-3
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+3
-0
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
No files found.
DataEditorX/Core/DataBase.cs
View file @
aed623a0
...
...
@@ -50,7 +50,7 @@ static DataBase()
/// 创建数据库
/// </summary>
/// <param name="Db">新数据库路径</param>
public
static
void
Create
(
string
Db
)
public
static
bool
Create
(
string
Db
)
{
if
(
File
.
Exists
(
Db
)
)
File
.
Delete
(
Db
);
...
...
@@ -62,7 +62,9 @@ public static void Create(string Db)
{
File
.
AppendAllText
(
"System.Data.SQLite.log"
,
exc
.
Source
+
"\n"
+
exc
.
TargetSite
+
"\n"
+
exc
.
Message
+
"\n"
+
exc
.
ToString
());
return
false
;
}
return
true
;
}
#
endregion
...
...
@@ -326,7 +328,9 @@ public static string GetSelectSQL(Card c)
if
(
c
.
id
>
0
&&
c
.
alias
<
0
)
sb
.
Append
(
" and datas.id >= "
+
c
.
id
.
ToString
());
else
if
(
c
.
id
>
0
&&
c
.
alias
>
0
)
sb
.
Append
(
" and datas.id >= "
+
c
.
id
.
ToString
()+
" and datas.alias >="
+
c
.
alias
.
ToString
());
sb
.
Append
(
" and datas.id >= "
+
c
.
id
.
ToString
()+
" and datas.id <="
+
c
.
alias
.
ToString
());
else
if
(
c
.
id
<
0
&&
c
.
alias
>
0
)
sb
.
Append
(
" and datas.id <= "
+
c
.
alias
.
ToString
());
else
if
(
c
.
id
>
0
)
sb
.
Append
(
" and datas.id="
+
c
.
id
.
ToString
());
else
if
(
c
.
alias
>
0
)
...
...
@@ -348,7 +352,7 @@ public static string GetInsertSQL(Card c, bool ignore)
if
(
ignore
)
st
.
Append
(
"INSERT or ignore into datas values("
);
else
st
.
Append
(
"INSERT into datas values("
);
st
.
Append
(
"INSERT
or replace
into datas values("
);
st
.
Append
(
c
.
id
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
ot
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
alias
.
ToString
());
st
.
Append
(
","
);
...
...
@@ -360,7 +364,10 @@ public static string GetInsertSQL(Card c, bool ignore)
st
.
Append
(
c
.
race
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
attribute
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
category
.
ToString
());
st
.
Append
(
")"
);
st
.
Append
(
";INSERT or ignore into texts values("
);
if
(
ignore
)
st
.
Append
(
";INSERT or ignore into texts values("
);
else
st
.
Append
(
";INSERT or replace into texts values("
);
st
.
Append
(
c
.
id
.
ToString
());
st
.
Append
(
",'"
);
st
.
Append
(
c
.
name
.
Replace
(
"'"
,
"''"
));
st
.
Append
(
"','"
);
st
.
Append
(
c
.
desc
.
Replace
(
"'"
,
"''"
));
...
...
DataEditorX/DataEditForm.Designer.cs
View file @
aed623a0
This diff is collapsed.
Click to expand it.
DataEditorX/DataEditForm.cs
View file @
aed623a0
This diff is collapsed.
Click to expand it.
DataEditorX/DataEditForm.resx
View file @
aed623a0
...
...
@@ -120,9 +120,6 @@
<metadata
name=
"menuStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
17, 17
</value>
</metadata>
<metadata
name=
"contextMenuStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
130, 17
</value>
</metadata>
<metadata
name=
"$this.TrayHeight"
type=
"System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
25
</value>
</metadata>
...
...
DataEditorX/DataEditorX.csproj
View file @
aed623a0
...
...
@@ -9,6 +9,9 @@
<AssemblyName>
DataEditorX
</AssemblyName>
<TargetFrameworkVersion>
v2.0
</TargetFrameworkVersion>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<StartupObject>
DataEditorX.Program
</StartupObject>
<ApplicationIcon>
icon.ico
</ApplicationIcon>
<NoWin32Manifest>
False
</NoWin32Manifest>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Platform)' == 'AnyCPU' "
>
<PlatformTarget>
x86
</PlatformTarget>
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
aed623a0
...
...
@@ -10,7 +10,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[
assembly
:
AssemblyTitle
(
"DataEditorX"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyDescription
(
"
E-mail:247321452@qq.com
"
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"DataEditorX"
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment