Compare commits
No commits in common. "8bf12dce08fc7684d699e11c2b8d789e64bba4e2" and "92d8af3f5447b0b90af8e8ecd085363fe6d23a9f" have entirely different histories.
8bf12dce08
...
92d8af3f54
63
TimeTable/Properties/Resources.Designer.cs
generated
63
TimeTable/Properties/Resources.Designer.cs
generated
@ -1,63 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace TimeTable.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TimeTable.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?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>
|
@ -14,19 +14,5 @@
|
||||
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.119" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Properties\Resources.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -156,16 +156,5 @@ namespace TimeTable.controll {
|
||||
sqliteCmd.ExecuteNonQuery();
|
||||
con.Close();
|
||||
}
|
||||
|
||||
public static void DeleteTableRow(string uid, string sqlConnection) {
|
||||
SqliteConnection con = new SqliteConnection(sqlConnection);
|
||||
con.Open();
|
||||
SqliteCommand sqliteCmd = con.CreateCommand();
|
||||
sqliteCmd.CommandText = @"Delete FROM timetable WHERE uid='" + uid + "';";
|
||||
con.Open();
|
||||
sqliteCmd.ExecuteNonQuery();
|
||||
con.Close();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
109
TimeTable/view/Decide.Designer.cs
generated
109
TimeTable/view/Decide.Designer.cs
generated
@ -1,109 +0,0 @@
|
||||
using System.Drawing;
|
||||
|
||||
namespace TimeTable.view {
|
||||
partial class decide {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) {
|
||||
if (disposing && (components != null)) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(decide));
|
||||
stopBtn = new Button();
|
||||
resumeBtn = new Button();
|
||||
cancelBtn = new Button();
|
||||
pictureBox1 = new PictureBox();
|
||||
label1 = new Label();
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
// stopBtn
|
||||
//
|
||||
stopBtn.Location = new Point(130, 81);
|
||||
stopBtn.Name = "stopBtn";
|
||||
stopBtn.Size = new Size(94, 29);
|
||||
stopBtn.TabIndex = 0;
|
||||
stopBtn.Text = "Stop";
|
||||
stopBtn.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// resumeBtn
|
||||
//
|
||||
resumeBtn.Location = new Point(230, 81);
|
||||
resumeBtn.Name = "resumeBtn";
|
||||
resumeBtn.Size = new Size(94, 29);
|
||||
resumeBtn.TabIndex = 1;
|
||||
resumeBtn.Text = "Resume";
|
||||
resumeBtn.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cancelBtn
|
||||
//
|
||||
cancelBtn.Location = new Point(330, 81);
|
||||
cancelBtn.Name = "cancelBtn";
|
||||
cancelBtn.Size = new Size(94, 29);
|
||||
cancelBtn.TabIndex = 2;
|
||||
cancelBtn.Text = "Cancel";
|
||||
cancelBtn.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
pictureBox1.Image = (Image)resources.GetObject("pictureBox1.Image");
|
||||
pictureBox1.Location = new Point(19, 20);
|
||||
pictureBox1.Margin = new Padding(10, 0, 0, 0);
|
||||
pictureBox1.Name = "pictureBox1";
|
||||
pictureBox1.Size = new Size(61, 57);
|
||||
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
pictureBox1.TabIndex = 3;
|
||||
pictureBox1.TabStop = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new Point(130, 38);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(267, 20);
|
||||
label1.TabIndex = 4;
|
||||
label1.Text = "What should happen to the Time Item?";
|
||||
//
|
||||
// decide
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(439, 122);
|
||||
Controls.Add(label1);
|
||||
Controls.Add(pictureBox1);
|
||||
Controls.Add(cancelBtn);
|
||||
Controls.Add(resumeBtn);
|
||||
Controls.Add(stopBtn);
|
||||
Name = "decide";
|
||||
Text = "What to do?";
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Button stopBtn;
|
||||
private Button resumeBtn;
|
||||
private Button cancelBtn;
|
||||
private PictureBox pictureBox1;
|
||||
private Label label1;
|
||||
}
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
namespace TimeTable.view {
|
||||
public partial class decide : Form {
|
||||
public decide() {
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -1,177 +0,0 @@
|
||||
<?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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
|
||||
cwAAEnMBjCK5BwAAC61JREFUWEftmHlU1OUax9l3EVNSLFOQRdnUtGOuiQiGqVcxwOOSmiRWrmGYy+1e
|
||||
j1YmpmJiKJusIjvMMAMzMAsMzLBvCkKiIg6boCIMLjDfc5/fDNbpHG91S/P+0XPO5/x+83u3L8/7Ps/7
|
||||
vmj8bX/b7zBHZyfDj/z8PLZt23Zw7dq1q6dOnTaaPmuqS1+yWVtbawQFBc1JTU2TZWfn9MXGxt1YudJz
|
||||
IxWZqmu8ZHNychoXGXkhlcQN8vkFEAgEym+/Dayi725UrKeu9ZLM2NhY59y5c/7p6awBLjcFkoIdyM1N
|
||||
QUZG1sDmzb7Rw4YNs6ZqL2+qFy9ebB0TE9PEZvOUefwAdHUaoFi6ASxWzuDZsyE3Z8yYsUFTU9N4qPpf
|
||||
b6GhofFsNncwMzMaTY0zMfBIEz1dr4HLCUYWJ3dw3/79efr6+vZUVVvd4i+0Xbt2rYyLi+8VCITIF32M
|
||||
/gdmGFBo4kmvNhqvLAaPz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
||||
hIScy6DD6JPcXB5YKReQFH4MyRGBSGGIOoHM6JNgxZ0GJ+EMsi/9gNyU8xCkhUPMikRBVhQk3FhI6c4h
|
||||
y7mIEv5FFBPMuyw7HoVUVpBFEUp1hdSGnxKq6oOTcJb6/B6ZMaeQSmOkRBxHctgxpEafhoDPIy/mDO7f
|
||||
f7CSBM7R8PT0/IJc2hgWFtkXFhHVHxEZoyIyKqY/Oia+Py7+kiLhUrIiOSVdkZbBVrDYXAWHy1fw+AJF
|
||||
niBfIc6XKPIlUkWhVKaQyooJmeq9oFCqEIklqjo8noDa8BSZ1DYtnaVITE5TXExIVsTGJSiiouMVNF5f
|
||||
eESUmvCIvqCg011Lly5lkUAX5l9orzo4OHzk4OD4DXGKOM3g6PgTQQxOTk6E8084OzNMCaIL+TNRlzuf
|
||||
onY/4ejIoBqDcDj5FHt7+yGYd4eTtrZ2R01NTX1JoAOhuhcMI94gmK3G9jlh8xswY/03JhLjCEbX/7Np
|
||||
aPwHx1g7vs5VsDQAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
39
TimeTable/view/Main.Designer.cs
generated
39
TimeTable/view/Main.Designer.cs
generated
@ -7,7 +7,6 @@ using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using TimeTable.controll;
|
||||
using TimeTable.model;
|
||||
using TimeTable.view;
|
||||
|
||||
namespace TimeTable {
|
||||
partial class Main
|
||||
@ -36,7 +35,6 @@ namespace TimeTable {
|
||||
bindingSource = new BindingSource(components);
|
||||
con = new SQLiteConnection();
|
||||
dataAdapter = new SQLiteDataAdapter();
|
||||
btnDelete = new Button();
|
||||
btnPanel.SuspendLayout();
|
||||
tableView.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)taskTimeGridView).BeginInit();
|
||||
@ -46,7 +44,6 @@ namespace TimeTable {
|
||||
// btnPanel
|
||||
//
|
||||
btnPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
btnPanel.Controls.Add(btnDelete);
|
||||
btnPanel.Controls.Add(btnTaskStop);
|
||||
btnPanel.Controls.Add(btnTaskStart);
|
||||
btnPanel.Controls.Add(btnStopResume);
|
||||
@ -104,6 +101,7 @@ namespace TimeTable {
|
||||
tableView.Name = "tableView";
|
||||
tableView.Size = new Size(631, 378);
|
||||
tableView.TabIndex = 1;
|
||||
|
||||
//
|
||||
// taskTimeGridView
|
||||
//
|
||||
@ -111,17 +109,17 @@ namespace TimeTable {
|
||||
taskTimeGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
taskTimeGridView.DataSource = bindingSource;
|
||||
taskTimeGridView.Dock = DockStyle.Fill;
|
||||
taskTimeGridView.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||
taskTimeGridView.Location = new Point(0, 0);
|
||||
taskTimeGridView.Name = "taskTimeGridView";
|
||||
taskTimeGridView.RowHeadersWidth = 51;
|
||||
taskTimeGridView.Size = new Size(631, 378);
|
||||
taskTimeGridView.TabIndex = 0;
|
||||
taskTimeGridView.CellContentDoubleClick += TimetableEditDoubleClick;
|
||||
taskTimeGridView.CellContentDoubleClick += timetableEditDoubleClick;
|
||||
//
|
||||
// con
|
||||
//
|
||||
con.BusyTimeout = 0;
|
||||
//con.ConnectionString = sqlConnectionString;
|
||||
con.ConnectionString = sqlConnectionString;
|
||||
con.DefaultDbType = null;
|
||||
con.DefaultMaximumSleepTime = 150;
|
||||
@ -137,18 +135,9 @@ namespace TimeTable {
|
||||
con.TraceFlags = SQLiteTraceFlags.SQLITE_TRACE_NONE;
|
||||
con.VfsName = null;
|
||||
con.WaitTimeout = 30000;
|
||||
// bindingSource.DataSource = createDataTable();
|
||||
bindingSource.DataSource = createDataTable();
|
||||
//
|
||||
// btnDelete
|
||||
//
|
||||
btnDelete.Location = new Point(8, 78);
|
||||
btnDelete.Name = "btnDelete";
|
||||
btnDelete.Size = new Size(94, 26);
|
||||
btnDelete.TabIndex = 4;
|
||||
btnDelete.Text = "Delete";
|
||||
btnDelete.UseVisualStyleBackColor = true;
|
||||
btnDelete.Click += DeleteRow;
|
||||
//
|
||||
// Main
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||
@ -174,23 +163,9 @@ namespace TimeTable {
|
||||
return table;
|
||||
}
|
||||
|
||||
private void DeleteRow(object sender, EventArgs e) {
|
||||
DataGridViewRow row = taskTimeGridView.Rows[0];
|
||||
string currentId = row.Cells[0].Value.ToString();
|
||||
SqliteCommands.DeleteTableRow(currentId, sqlConnectionString);
|
||||
bindingSource.DataSource = createDataTable();
|
||||
}
|
||||
|
||||
private void TimetableEditDoubleClick(object sender, DataGridViewCellEventArgs e) {
|
||||
private void timetableEditDoubleClick(object sender, DataGridViewCellEventArgs e) {
|
||||
DataGridViewRow row = taskTimeGridView.Rows[0];
|
||||
string uid = row.Cells[0].Value.ToString();
|
||||
string start = row.Cells[1].Value.ToString();
|
||||
string end = row.Cells[2].Value.ToString();
|
||||
string text = row.Cells[3].Value.ToString();
|
||||
|
||||
RowEdit rowEdit = new RowEdit();
|
||||
rowEdit.Data(uid, start, end, text);
|
||||
rowEdit.Show();
|
||||
string uid = row.Cells[0].Value();
|
||||
}
|
||||
|
||||
private void executeSql(string command) {
|
||||
@ -200,7 +175,6 @@ namespace TimeTable {
|
||||
con.Open();
|
||||
sqliteCmd.ExecuteNonQuery();
|
||||
con.Close();
|
||||
bindingSource.DataSource = createDataTable();
|
||||
}
|
||||
|
||||
|
||||
@ -241,6 +215,5 @@ namespace TimeTable {
|
||||
private SQLiteConnection con;
|
||||
private SQLiteDataAdapter dataAdapter;
|
||||
private System.ComponentModel.IContainer components;
|
||||
private Button btnDelete;
|
||||
}
|
||||
}
|
||||
|
92
TimeTable/view/RowEdit.Designer.cs
generated
92
TimeTable/view/RowEdit.Designer.cs
generated
@ -1,8 +1,4 @@
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using TimeTable.controll;
|
||||
using TimeTable.model;
|
||||
|
||||
namespace TimeTable.view {
|
||||
namespace TimeTable.view {
|
||||
partial class RowEdit {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -32,13 +28,11 @@ namespace TimeTable.view {
|
||||
EndTxt = new Label();
|
||||
textTxt = new Label();
|
||||
uidLbl = new Label();
|
||||
startDatePicker = new DateTimePicker();
|
||||
endDatePicker = new DateTimePicker();
|
||||
startTimePicker = new DateTimePicker();
|
||||
endTimePicker = new DateTimePicker();
|
||||
textBox = new TextBox();
|
||||
btnSave = new Button();
|
||||
btnCancel = new Button();
|
||||
startTimePicker = new DateTimePicker();
|
||||
endTimePicker = new DateTimePicker();
|
||||
SuspendLayout();
|
||||
//
|
||||
// uidTxt
|
||||
@ -86,30 +80,30 @@ namespace TimeTable.view {
|
||||
uidLbl.TabIndex = 4;
|
||||
uidLbl.Text = "UID";
|
||||
//
|
||||
// startDatePicker
|
||||
// startTimePicker
|
||||
//
|
||||
startDatePicker.Location = new Point(71, 49);
|
||||
startDatePicker.Name = "startDatePicker";
|
||||
startDatePicker.Size = new Size(186, 27);
|
||||
startDatePicker.TabIndex = 5;
|
||||
startTimePicker.Location = new Point(71, 49);
|
||||
startTimePicker.Name = "startTimePicker";
|
||||
startTimePicker.Size = new Size(250, 27);
|
||||
startTimePicker.TabIndex = 5;
|
||||
//
|
||||
// endDatePicker
|
||||
// endTimePicker
|
||||
//
|
||||
endDatePicker.Location = new Point(71, 88);
|
||||
endDatePicker.Name = "endDatePicker";
|
||||
endDatePicker.Size = new Size(186, 27);
|
||||
endDatePicker.TabIndex = 6;
|
||||
endTimePicker.Location = new Point(71, 88);
|
||||
endTimePicker.Name = "endTimePicker";
|
||||
endTimePicker.Size = new Size(250, 27);
|
||||
endTimePicker.TabIndex = 6;
|
||||
//
|
||||
// textBox
|
||||
//
|
||||
textBox.Location = new Point(71, 126);
|
||||
textBox.Name = "textBox";
|
||||
textBox.Size = new Size(300, 27);
|
||||
textBox.Size = new Size(250, 27);
|
||||
textBox.TabIndex = 7;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
btnSave.Location = new Point(156, 173);
|
||||
btnSave.Location = new Point(134, 173);
|
||||
btnSave.Name = "btnSave";
|
||||
btnSave.Size = new Size(101, 30);
|
||||
btnSave.TabIndex = 8;
|
||||
@ -119,42 +113,23 @@ namespace TimeTable.view {
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
btnCancel.Location = new Point(270, 173);
|
||||
btnCancel.Location = new Point(241, 173);
|
||||
btnCancel.Name = "btnCancel";
|
||||
btnCancel.Size = new Size(101, 30);
|
||||
btnCancel.TabIndex = 9;
|
||||
btnCancel.Text = "Cancel";
|
||||
btnCancel.UseVisualStyleBackColor = true;
|
||||
btnCancel.Click += btnCancelCmd;
|
||||
//
|
||||
// startTimePicker
|
||||
//
|
||||
startTimePicker.Format = DateTimePickerFormat.Time;
|
||||
startTimePicker.Location = new Point(263, 49);
|
||||
startTimePicker.Name = "startTimePicker";
|
||||
startTimePicker.Size = new Size(108, 27);
|
||||
startTimePicker.TabIndex = 10;
|
||||
//
|
||||
// endTimePicker
|
||||
//
|
||||
endTimePicker.Format = DateTimePickerFormat.Time;
|
||||
endTimePicker.Location = new Point(263, 88);
|
||||
endTimePicker.Name = "endTimePicker";
|
||||
endTimePicker.Size = new Size(108, 27);
|
||||
endTimePicker.TabIndex = 11;
|
||||
//
|
||||
// RowEdit
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(382, 237);
|
||||
Controls.Add(endTimePicker);
|
||||
Controls.Add(startTimePicker);
|
||||
ClientSize = new Size(354, 215);
|
||||
Controls.Add(btnCancel);
|
||||
Controls.Add(btnSave);
|
||||
Controls.Add(textBox);
|
||||
Controls.Add(endDatePicker);
|
||||
Controls.Add(startDatePicker);
|
||||
Controls.Add(endTimePicker);
|
||||
Controls.Add(startTimePicker);
|
||||
Controls.Add(uidLbl);
|
||||
Controls.Add(textTxt);
|
||||
Controls.Add(EndTxt);
|
||||
@ -167,26 +142,13 @@ namespace TimeTable.view {
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
|
||||
private void btnCancelCmd(object sender, EventArgs e) {
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
public void Data(string uid, string start, string end, string text) {
|
||||
uidLbl.Text = uid;
|
||||
if (!start.IsNullOrEmpty()) {
|
||||
startDatePicker.Text = start;
|
||||
}
|
||||
if (!end.IsNullOrEmpty()) {
|
||||
endDatePicker.Text = end;
|
||||
}
|
||||
|
||||
if (!text.IsNullOrEmpty()) {
|
||||
textBox.Text = text;
|
||||
}
|
||||
public void setData(string uid, string start, string end, string text) {
|
||||
uidLbl.Text = uid;
|
||||
startTimePicker.Text = start;
|
||||
endTimePicker.Text = end;
|
||||
textBox.Text = text;
|
||||
}
|
||||
|
||||
private Label uidTxt;
|
||||
@ -194,13 +156,11 @@ namespace TimeTable.view {
|
||||
private Label EndTxt;
|
||||
private Label textTxt;
|
||||
private Label uidLbl;
|
||||
private DateTimePicker startDatePicker;
|
||||
private DateTimePicker endDatePicker;
|
||||
private DateTimePicker startTimePicker;
|
||||
private DateTimePicker endTimePicker;
|
||||
private TextBox textBox;
|
||||
private Button btnSave;
|
||||
private Button btnCancel;
|
||||
private DateTimePicker startTimePicker;
|
||||
private DateTimePicker endTimePicker;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user