Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020_068
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
2020_068
2020_068
Commits
2cf23a3d
Commit
2cf23a3d
authored
Sep 27, 2020
by
VihangiSalgado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB
parent
84305b28
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1031 additions
and
326 deletions
+1031
-326
AssistPlugin/WindowsFormsApp1/Entry.Designer.cs
AssistPlugin/WindowsFormsApp1/Entry.Designer.cs
+9
-9
AssistPlugin/WindowsFormsApp1/Entry.cs
AssistPlugin/WindowsFormsApp1/Entry.cs
+15
-1
AssistPlugin/WindowsFormsApp1/Form4.Designer.cs
AssistPlugin/WindowsFormsApp1/Form4.Designer.cs
+94
-94
AssistPlugin/WindowsFormsApp1/Form4.cs
AssistPlugin/WindowsFormsApp1/Form4.cs
+21
-0
AssistPlugin/WindowsFormsApp1/Form5.Designer.cs
AssistPlugin/WindowsFormsApp1/Form5.Designer.cs
+91
-89
AssistPlugin/WindowsFormsApp1/Form5.cs
AssistPlugin/WindowsFormsApp1/Form5.cs
+70
-3
AssistPlugin/WindowsFormsApp1/Shot.Designer.cs
AssistPlugin/WindowsFormsApp1/Shot.Designer.cs
+9
-8
AssistPlugin/WindowsFormsApp1/Shot.cs
AssistPlugin/WindowsFormsApp1/Shot.cs
+6
-1
AssistPlugin/WindowsFormsApp1/Step.Designer.cs
AssistPlugin/WindowsFormsApp1/Step.Designer.cs
+142
-121
AssistPlugin/WindowsFormsApp1/Step.cs
AssistPlugin/WindowsFormsApp1/Step.cs
+10
-0
AssistPlugin/WindowsFormsApp1/Step2.Designer.cs
AssistPlugin/WindowsFormsApp1/Step2.Designer.cs
+327
-0
AssistPlugin/WindowsFormsApp1/Step2.cs
AssistPlugin/WindowsFormsApp1/Step2.cs
+25
-0
AssistPlugin/WindowsFormsApp1/Step2.resx
AssistPlugin/WindowsFormsApp1/Step2.resx
+120
-0
AssistPlugin/WindowsFormsApp1/WindowsFormsApp1.csproj
AssistPlugin/WindowsFormsApp1/WindowsFormsApp1.csproj
+12
-0
AssistPlugin/WindowsFormsApp1/mydbclass/DB.cs
AssistPlugin/WindowsFormsApp1/mydbclass/DB.cs
+80
-0
No files found.
AssistPlugin/WindowsFormsApp1/Entry.Designer.cs
View file @
2cf23a3d
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
radioButton1
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
radioButton1
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
textBox1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
ename
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
radioButton2
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
radioButton2
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
...
@@ -72,13 +72,13 @@
...
@@ -72,13 +72,13 @@
this
.
radioButton1
.
UseVisualStyleBackColor
=
true
;
this
.
radioButton1
.
UseVisualStyleBackColor
=
true
;
this
.
radioButton1
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
RadioButton1_CheckedChanged
);
this
.
radioButton1
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
RadioButton1_CheckedChanged
);
//
//
//
textBox1
//
ename
//
//
this
.
textBox1
.
Location
=
new
System
.
Drawing
.
Point
(
149
,
85
);
this
.
ename
.
Location
=
new
System
.
Drawing
.
Point
(
149
,
85
);
this
.
textBox1
.
Name
=
"textBox1
"
;
this
.
ename
.
Name
=
"ename
"
;
this
.
textBox1
.
Size
=
new
System
.
Drawing
.
Size
(
237
,
22
);
this
.
ename
.
Size
=
new
System
.
Drawing
.
Size
(
237
,
22
);
this
.
textBox1
.
TabIndex
=
3
;
this
.
ename
.
TabIndex
=
3
;
this
.
textBox1
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
TextBox1_TextChanged
);
this
.
ename
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
TextBox1_TextChanged
);
//
//
// radioButton2
// radioButton2
//
//
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
this
.
panel1
.
Controls
.
Add
(
this
.
button1
);
this
.
panel1
.
Controls
.
Add
(
this
.
button1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label2
);
this
.
panel1
.
Controls
.
Add
(
this
.
label2
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox1
);
this
.
panel1
.
Controls
.
Add
(
this
.
ename
);
this
.
panel1
.
Controls
.
Add
(
this
.
radioButton2
);
this
.
panel1
.
Controls
.
Add
(
this
.
radioButton2
);
this
.
panel1
.
Controls
.
Add
(
this
.
radioButton1
);
this
.
panel1
.
Controls
.
Add
(
this
.
radioButton1
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
12
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
12
);
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
RadioButton
radioButton1
;
private
System
.
Windows
.
Forms
.
RadioButton
radioButton1
;
private
System
.
Windows
.
Forms
.
TextBox
textBox1
;
private
System
.
Windows
.
Forms
.
TextBox
ename
;
private
System
.
Windows
.
Forms
.
RadioButton
radioButton2
;
private
System
.
Windows
.
Forms
.
RadioButton
radioButton2
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Button
button2
;
private
System
.
Windows
.
Forms
.
Button
button2
;
...
...
AssistPlugin/WindowsFormsApp1/Entry.cs
View file @
2cf23a3d
...
@@ -7,13 +7,17 @@ using System.Linq;
...
@@ -7,13 +7,17 @@ using System.Linq;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
using
WindowsFormsApp1.mydbclass
;
using
MySql.Data.MySqlClient
;
namespace
WindowsFormsApp1
namespace
WindowsFormsApp1
{
{
public
partial
class
Entry
:
Form
public
partial
class
Entry
:
Form
{
{
CRUD
crud
=
new
CRUD
();
public
Entry
()
public
Entry
()
{
{
InitializeComponent
();
InitializeComponent
();
}
}
...
@@ -39,7 +43,17 @@ namespace WindowsFormsApp1
...
@@ -39,7 +43,17 @@ namespace WindowsFormsApp1
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
{
{
//this.Close();
CREATE
();
// READ();
this
.
Close
();
}
}
public
void
CREATE
()
{
crud
.
ename
=
ename
.
Text
;
crud
.
InsertAsset
();
}
}
}
}
}
AssistPlugin/WindowsFormsApp1/Form4.Designer.cs
View file @
2cf23a3d
This diff is collapsed.
Click to expand it.
AssistPlugin/WindowsFormsApp1/Form4.cs
View file @
2cf23a3d
...
@@ -6,6 +6,7 @@ using System.Drawing;
...
@@ -6,6 +6,7 @@ using System.Drawing;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Diagnostics
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
namespace
WindowsFormsApp1
namespace
WindowsFormsApp1
...
@@ -20,9 +21,24 @@ namespace WindowsFormsApp1
...
@@ -20,9 +21,24 @@ namespace WindowsFormsApp1
Entry
Entry
=
new
Entry
();
Entry
Entry
=
new
Entry
();
Step
Step
=
new
Step
();
Step
Step
=
new
Step
();
Form6
comment
=
new
Form6
();
Form6
comment
=
new
Form6
();
Form8
scene
=
new
Form8
();
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
Maya
.
Checked
==
true
)
Process
.
Start
(
"C:/Program Files/Autodesk/Maya2018/bin/maya"
);
else
if
(
Max
.
Checked
==
true
)
Process
.
Start
(
"C:/Program Files/Autodesk/3ds Max 2020/3dsmax"
);
else
if
(
Houdini
.
Checked
==
true
)
Process
.
Start
(
"C:/Program Files/Side Effects Software/Houdini 18.0.460/bin/houdinifx"
);
else
if
(
SceneAssembler
.
Checked
==
true
)
scene
.
Show
();
else
if
(
AssistAccount
.
Checked
==
true
)
Process
.
Start
(
""
);
else
Process
.
Start
(
""
);
}
}
...
@@ -170,5 +186,10 @@ namespace WindowsFormsApp1
...
@@ -170,5 +186,10 @@ namespace WindowsFormsApp1
{
{
}
}
private
void
Label7_Click
(
object
sender
,
EventArgs
e
)
{
}
}
}
}
}
AssistPlugin/WindowsFormsApp1/Form5.Designer.cs
View file @
2cf23a3d
This diff is collapsed.
Click to expand it.
AssistPlugin/WindowsFormsApp1/Form5.cs
View file @
2cf23a3d
...
@@ -6,21 +6,29 @@ using System.Drawing;
...
@@ -6,21 +6,29 @@ using System.Drawing;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Diagnostics
;
using
WindowsFormsApp1.mydbclass
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
using
MySql.Data.MySqlClient
;
namespace
WindowsFormsApp1
namespace
WindowsFormsApp1
{
{
public
partial
class
Form5
:
Form
public
partial
class
Form5
:
Form
{
{
CRUD
crud
=
new
CRUD
();
public
Form5
()
public
Form5
()
{
{
InitializeComponent
();
InitializeComponent
();
}
}
Shot
Shot
=
new
Shot
();
Shot
Shot
=
new
Shot
();
Step
Step
=
new
Step
();
Step
Step
2
=
new
Step
();
Form7
form7
=
new
Form7
();
Form7
form7
=
new
Form7
();
Form8
form8
=
new
Form8
();
Step2
step
=
new
Step2
();
private
object
ename
;
private
void
Label1_Click
(
object
sender
,
EventArgs
e
)
private
void
Label1_Click
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -34,7 +42,7 @@ namespace WindowsFormsApp1
...
@@ -34,7 +42,7 @@ namespace WindowsFormsApp1
private
void
CreateStepToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
CreateStepToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
{
Step
.
Show
();
Step
2
.
Show
();
}
}
private
void
Button5_Click
(
object
sender
,
EventArgs
e
)
private
void
Button5_Click
(
object
sender
,
EventArgs
e
)
...
@@ -51,5 +59,64 @@ namespace WindowsFormsApp1
...
@@ -51,5 +59,64 @@ namespace WindowsFormsApp1
{
{
form7
.
Show
();
form7
.
Show
();
}
}
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
{
if
(
Maya1
.
Checked
==
true
)
Process
.
Start
(
"C:/Program Files/Autodesk/Maya2018/bin/maya"
);
else
if
(
Max1
.
Checked
==
true
)
Process
.
Start
(
"C:/Program Files/Autodesk/3ds Max 2020/3dsmax"
);
else
if
(
Houdini1
.
Checked
==
true
)
Process
.
Start
(
"C:/Program Files/Side Effects Software/Houdini 18.0.460/bin/houdinifx"
);
else
if
(
SceneAssembler1
.
Checked
==
true
)
form8
.
Show
();
else
if
(
AssistAccount1
.
Checked
==
true
)
Process
.
Start
(
""
);
else
Process
.
Start
(
""
);
}
private
void
Maya1_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
}
public
void
READ
()
{
// dataGridView1.DataSource = null;
crud
.
Read_data
();
// dataGridView1.DataSource = crud.dt;
}
public
void
CREATE
()
{
// crud.ename =
// crud.Create_data();
}
private
void
DataGridView1_CellContentClick
(
object
sender
,
DataGridViewCellEventArgs
e
)
{
DataGridView
senderGrid
=
(
DataGridView
)
sender
;
try
{
/// if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
// {
/// ename = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
// }
}
catch
{
MessageBox
.
Show
(
"Dont Click the header!"
);
}
}
private
void
DataGridView2_CellContentClick
(
object
sender
,
DataGridViewCellEventArgs
e
)
{
}
}
}
}
}
AssistPlugin/WindowsFormsApp1/Shot.Designer.cs
View file @
2cf23a3d
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
textBox4
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox4
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
sname
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
this
.
panel1
.
Controls
.
Add
(
this
.
button1
);
this
.
panel1
.
Controls
.
Add
(
this
.
button1
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox4
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox4
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox3
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox3
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox2
);
this
.
panel1
.
Controls
.
Add
(
this
.
sname
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox1
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label5
);
this
.
panel1
.
Controls
.
Add
(
this
.
label5
);
this
.
panel1
.
Controls
.
Add
(
this
.
label4
);
this
.
panel1
.
Controls
.
Add
(
this
.
label4
);
...
@@ -95,12 +95,13 @@
...
@@ -95,12 +95,13 @@
this
.
textBox3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
22
);
this
.
textBox3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
22
);
this
.
textBox3
.
TabIndex
=
7
;
this
.
textBox3
.
TabIndex
=
7
;
//
//
//
textBox2
//
sname
//
//
this
.
textBox2
.
Location
=
new
System
.
Drawing
.
Point
(
364
,
20
);
this
.
sname
.
Location
=
new
System
.
Drawing
.
Point
(
364
,
20
);
this
.
textBox2
.
Name
=
"textBox2"
;
this
.
sname
.
Name
=
"sname"
;
this
.
textBox2
.
Size
=
new
System
.
Drawing
.
Size
(
197
,
22
);
this
.
sname
.
Size
=
new
System
.
Drawing
.
Size
(
197
,
22
);
this
.
textBox2
.
TabIndex
=
6
;
this
.
sname
.
TabIndex
=
6
;
this
.
sname
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
TextBox2_TextChanged
);
//
//
// textBox1
// textBox1
//
//
...
@@ -184,7 +185,7 @@
...
@@ -184,7 +185,7 @@
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
TextBox
textBox2
;
private
System
.
Windows
.
Forms
.
TextBox
sname
;
private
System
.
Windows
.
Forms
.
TextBox
textBox1
;
private
System
.
Windows
.
Forms
.
TextBox
textBox1
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Label
label4
;
private
System
.
Windows
.
Forms
.
Label
label4
;
...
...
AssistPlugin/WindowsFormsApp1/Shot.cs
View file @
2cf23a3d
...
@@ -44,7 +44,12 @@ namespace WindowsFormsApp1
...
@@ -44,7 +44,12 @@ namespace WindowsFormsApp1
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
private
void
Button1_Click
(
object
sender
,
EventArgs
e
)
{
{
//this.Close();
this
.
Close
();
}
private
void
TextBox2_TextChanged
(
object
sender
,
EventArgs
e
)
{
}
}
}
}
}
}
AssistPlugin/WindowsFormsApp1/Step.Designer.cs
View file @
2cf23a3d
This diff is collapsed.
Click to expand it.
AssistPlugin/WindowsFormsApp1/Step.cs
View file @
2cf23a3d
...
@@ -51,5 +51,15 @@ namespace WindowsFormsApp1
...
@@ -51,5 +51,15 @@ namespace WindowsFormsApp1
{
{
this
.
Close
();
this
.
Close
();
}
}
private
void
Button4_Click
(
object
sender
,
EventArgs
e
)
{
}
private
void
Button3_Click
(
object
sender
,
EventArgs
e
)
{
this
.
Close
();
}
}
}
}
}
AssistPlugin/WindowsFormsApp1/Step2.Designer.cs
0 → 100644
View file @
2cf23a3d
This diff is collapsed.
Click to expand it.
AssistPlugin/WindowsFormsApp1/Step2.cs
0 → 100644
View file @
2cf23a3d
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
WindowsFormsApp1
{
public
partial
class
Step2
:
Form
{
public
Step2
()
{
InitializeComponent
();
}
private
void
Button4_Click
(
object
sender
,
EventArgs
e
)
{
this
.
Close
();
}
}
}
AssistPlugin/WindowsFormsApp1/Step2.resx
0 → 100644
View file @
2cf23a3d
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
</root>
\ No newline at end of file
AssistPlugin/WindowsFormsApp1/WindowsFormsApp1.csproj
View file @
2cf23a3d
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
<Prefer32Bit>
true
</Prefer32Bit>
<Prefer32Bit>
true
</Prefer32Bit>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference
Include=
"MySql.Data, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"System.Xml.Linq"
/>
...
@@ -120,6 +121,7 @@
...
@@ -120,6 +121,7 @@
<Compile
Include=
"Form8.Designer.cs"
>
<Compile
Include=
"Form8.Designer.cs"
>
<DependentUpon>
Form8.cs
</DependentUpon>
<DependentUpon>
Form8.cs
</DependentUpon>
</Compile>
</Compile>
<Compile
Include=
"mydbclass\DB.cs"
/>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Shot.cs"
>
<Compile
Include=
"Shot.cs"
>
...
@@ -134,6 +136,12 @@
...
@@ -134,6 +136,12 @@
<Compile
Include=
"Step.Designer.cs"
>
<Compile
Include=
"Step.Designer.cs"
>
<DependentUpon>
Step.cs
</DependentUpon>
<DependentUpon>
Step.cs
</DependentUpon>
</Compile>
</Compile>
<Compile
Include=
"Step2.cs"
>
<SubType>
Form
</SubType>
</Compile>
<Compile
Include=
"Step2.Designer.cs"
>
<DependentUpon>
Step2.cs
</DependentUpon>
</Compile>
<EmbeddedResource
Include=
"Entry.resx"
>
<EmbeddedResource
Include=
"Entry.resx"
>
<DependentUpon>
Entry.cs
</DependentUpon>
<DependentUpon>
Entry.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
@@ -177,6 +185,9 @@
...
@@ -177,6 +185,9 @@
<EmbeddedResource
Include=
"Step.resx"
>
<EmbeddedResource
Include=
"Step.resx"
>
<DependentUpon>
Step.cs
</DependentUpon>
<DependentUpon>
Step.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource
Include=
"Step2.resx"
>
<DependentUpon>
Step2.cs
</DependentUpon>
</EmbeddedResource>
<None
Include=
"Properties\Settings.settings"
>
<None
Include=
"Properties\Settings.settings"
>
<Generator>
SettingsSingleFileGenerator
</Generator>
<Generator>
SettingsSingleFileGenerator
</Generator>
<LastGenOutput>
Settings.Designer.cs
</LastGenOutput>
<LastGenOutput>
Settings.Designer.cs
</LastGenOutput>
...
@@ -196,5 +207,6 @@
...
@@ -196,5 +207,6 @@
<ItemGroup>
<ItemGroup>
<None
Include=
"Resources\Test Project Shots.png"
/>
<None
Include=
"Resources\Test Project Shots.png"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup
/>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
</Project>
\ No newline at end of file
AssistPlugin/WindowsFormsApp1/mydbclass/DB.cs
0 → 100644
View file @
2cf23a3d
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
MySql.Data.MySqlClient
;
using
System.Data
;
namespace
WindowsFormsApp1.mydbclass
{
//public MySqlConnection conn;
class
DB
{
public
MySqlConnection
con
;
public
DB
()
{
string
host
=
"localhost"
;
string
db
=
"sceneassemblerplugin"
;
string
port
=
"3306"
;
string
user
=
"root"
;
string
pass
=
""
;
string
constring
=
"datasource ="
+
host
+
"; database ="
+
db
+
"; port ="
+
port
+
"; username = "
+
user
+
"; password="
+
pass
+
"; SslMode=none"
;
con
=
new
MySqlConnection
(
constring
);
}
}
class
CRUD
:
DB
{
public
string
ename
{
set
;
get
;
}
public
string
sname
{
set
;
get
;
}
public
DataTable
dt
=
new
DataTable
();
private
DataSet
ds
=
new
DataSet
();
public
void
InsertAsset
()
{
con
.
Open
();
using
(
MySqlCommand
cmd
=
new
MySqlCommand
())
{
cmd
.
CommandText
=
"INSERT INTO asset (entry_name) VALUES (@ename)"
;
cmd
.
CommandType
=
CommandType
.
Text
;
cmd
.
Connection
=
con
;
cmd
.
Parameters
.
Add
(
"@ename"
,
MySqlDbType
.
VarChar
).
Value
=
ename
;
cmd
.
ExecuteNonQuery
();
con
.
Close
();
}
}
public
void
Insertshot
()
{
con
.
Open
();
using
(
MySqlCommand
cmd
=
new
MySqlCommand
())
{
cmd
.
CommandText
=
"INSERT INTO shot('Shot_Name') VALUES(@sname)"
;
cmd
.
CommandType
=
CommandType
.
Text
;
cmd
.
Connection
=
con
;
cmd
.
Parameters
.
Add
(
"@sname"
,
MySqlDbType
.
VarChar
).
Value
=
sname
;
cmd
.
ExecuteNonQuery
();
con
.
Close
();
}
}
public
void
Read_data
()
{
dt
.
Clear
();
String
query
=
"SELECT * FROM asset"
;
MySqlDataAdapter
MDA
=
new
MySqlDataAdapter
(
query
,
con
);
MDA
.
Fill
(
ds
);
dt
=
ds
.
Tables
[
0
];
}
}
}
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