添加项目文件。

This commit is contained in:
lichx
2024-03-12 16:15:15 +08:00
parent 87f7c50467
commit f823e0f372
39 changed files with 3489 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
namespace CSS_Solution.Forms
{
partial class Change_Task_Form
{
/// <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()
{
label1 = new Label();
SuspendLayout();
//
// label1
//
label1.AutoSize = true;
label1.Location = new Point(12, 9);
label1.Name = "label1";
label1.Size = new Size(22, 24);
label1.TabIndex = 1;
label1.Text = "b";
//
// Change_Task_Form
//
AutoScaleDimensions = new SizeF(11F, 24F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(label1);
Name = "Change_Task_Form";
Text = "Change_Task_Form";
ResumeLayout(false);
PerformLayout();
}
#endregion
private Label label1;
}
}
+20
View File
@@ -0,0 +1,20 @@
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 CSS_Solution.Forms
{
public partial class Change_Task_Form : Form
{
public Change_Task_Form()
{
InitializeComponent();
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?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>
+136
View File
@@ -0,0 +1,136 @@
namespace CSS_Solution.Forms
{
partial class Countdown
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
Title = new Label();
Delta_Time = new Label();
millisecond = new Label();
inaccuracies = new Label();
info2 = new Label();
info1 = new Label();
refresh = new System.Windows.Forms.Timer(components);
SuspendLayout();
//
// Title
//
Title.AutoSize = true;
Title.Font = new Font("Microsoft YaHei UI", 28F, FontStyle.Regular, GraphicsUnit.Point, 134);
Title.ForeColor = Color.White;
Title.Location = new Point(0, 0);
Title.Name = "Title";
Title.Size = new Size(163, 75);
Title.TabIndex = 12;
Title.Text = "Time";
//
// Delta_Time
//
Delta_Time.Font = new Font("Microsoft YaHei UI", 42F, FontStyle.Regular, GraphicsUnit.Point, 134);
Delta_Time.ForeColor = Color.White;
Delta_Time.Location = new Point(-8, 54);
Delta_Time.Name = "Delta_Time";
Delta_Time.Size = new Size(430, 110);
Delta_Time.TabIndex = 13;
Delta_Time.Text = "00:00:00";
//
// millisecond
//
millisecond.AutoSize = true;
millisecond.ForeColor = Color.White;
millisecond.Location = new Point(348, 122);
millisecond.Name = "millisecond";
millisecond.Size = new Size(32, 24);
millisecond.TabIndex = 14;
millisecond.Text = "00";
//
// inaccuracies
//
inaccuracies.AutoSize = true;
inaccuracies.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
inaccuracies.ForeColor = Color.White;
inaccuracies.Location = new Point(343, 67);
inaccuracies.Name = "inaccuracies";
inaccuracies.Size = new Size(42, 31);
inaccuracies.TabIndex = 15;
inaccuracies.Text = "+-";
//
// info2
//
info2.AutoSize = true;
info2.ForeColor = Color.White;
info2.Location = new Point(11, 191);
info2.Name = "info2";
info2.Size = new Size(273, 24);
info2.TabIndex = 16;
info2.Text = "START OF COURSE SELECTION";
//
// info1
//
info1.AutoSize = true;
info1.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
info1.ForeColor = Color.White;
info1.Location = new Point(8, 155);
info1.Name = "info1";
info1.Size = new Size(131, 31);
info1.TabIndex = 17;
info1.Text = "EXPECTED";
//
// refresh
//
refresh.Interval = 10;
refresh.Tick += refresh_Tick;
//
// Countdown
//
AutoScaleDimensions = new SizeF(11F, 24F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = Color.FromArgb(25, 25, 25);
Controls.Add(Title);
Controls.Add(info1);
Controls.Add(info2);
Controls.Add(millisecond);
Controls.Add(inaccuracies);
Controls.Add(Delta_Time);
Name = "Countdown";
Size = new Size(390, 226);
ResumeLayout(false);
PerformLayout();
}
#endregion
private Label Title;
private Label Delta_Time;
private Label millisecond;
private Label inaccuracies;
private Label info2;
private Label info1;
private System.Windows.Forms.Timer refresh;
}
}
+39
View File
@@ -0,0 +1,39 @@
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;
using CSS_Solution;
namespace CSS_Solution.Forms
{
public partial class Countdown : UserControl
{
public Countdown()
{
InitializeComponent();
refresh.Enabled = true;
}
public void Start_Timer() => millisecond.Enabled = true;
private void refresh_Tick(object sender, EventArgs e)
{
if(DesignMode) return;
DateTime start = DateTime.Now;
DateTime end = Settings.etc.StartTime;
//DateTime end = DateTime.Now;
TimeSpan duration = end - start;
if (duration < TimeSpan.Zero)
{
refresh.Enabled = false;
Delta_Time.Text = "00:00:00";
millisecond.Text = "00";
}
Delta_Time.Text = duration.ToString(@"hh\:mm\:ss");
millisecond.Text = duration.ToString(@"fff").Remove(2);
}
}
}
+123
View File
@@ -0,0 +1,123 @@
<?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>
<metadata name="refresh.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
+199
View File
@@ -0,0 +1,199 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSS_Solution.Forms
{
partial class MainForm
{
private Point mPoint;
private void Title_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
Location = new Point(Location.X + e.X - mPoint.X, Location.Y + e.Y - mPoint.Y);
}
private void Title_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
//enum Adjustment_position
//{
// LeftTop = 0,
// Top = 1,
// RightTop = 2,
// Right = 3,
// RightBottom = 4,
// Bottom = 5,
// LeftBottom = 6,
// Left = 7,
// Middle = 8
//}
//Adjustment_position adjustment_Position = Adjustment_position.Middle;
//private void Main_MouseMove(object sender, MouseEventArgs e)
//{
// if (e.Button == MouseButtons.Left)
// {
// switch (adjustment_Position)
// {
// case Adjustment_position.LeftTop:
// {
// int endx = Left + Width;
// Left = MousePosition.X;
// Width = endx - Left;
// int endy = Top + Height;
// Top = MousePosition.Y;
// Height = endy - Top;
// break;
// }
// case Adjustment_position.Top:
// {
// int endy = Top + Height;
// Top = MousePosition.Y;
// Height = endy - Top;
// break;
// }
// case Adjustment_position.RightTop:
// {
// int endy = Top + Height;
// Top = MousePosition.Y;
// Width = MousePosition.X - Left;
// Height = endy - Top;
// break;
// }
// case Adjustment_position.Right:
// {
// Width = MousePosition.X - Left;
// break;
// }
// case Adjustment_position.RightBottom:
// {
// Width = MousePosition.X - Left;
// Height = MousePosition.Y - Top;
// break;
// }
// case Adjustment_position.Bottom:
// {
// Height = MousePosition.Y - Top;
// break;
// }
// case Adjustment_position.LeftBottom:
// {
// int endx = Left + Width;
// Left = MousePosition.X;
// Width = endx - Left;
// Height = MousePosition.Y - Top;
// break;
// }
// case Adjustment_position.Left:
// {
// int endx = Left + Width;
// Left = MousePosition.X;
// Width = endx - Left;
// break;
// }
// }
// }
// if (e.Location.X >= Width - 4 && e.Location.Y >= Height - 4)
// {
// Cursor = Cursors.SizeNWSE; //RightBottom
// adjustment_Position = Adjustment_position.RightBottom;
// }
// else if (e.Location.X >= Width - 4 && e.Location.Y <= 4)
// {
// Cursor = Cursors.SizeNESW; //RightTop
// adjustment_Position = Adjustment_position.RightTop;
// }
// else if (e.Location.X <= 4 && e.Location.Y >= Height - 4)
// {
// Cursor = Cursors.SizeNESW; //LeftBottom
// adjustment_Position = Adjustment_position.LeftBottom;
// }
// else if (e.Location.X <= 4 && e.Location.Y <= 4)
// {
// Cursor = Cursors.SizeNWSE; //LeftTop
// adjustment_Position = Adjustment_position.LeftTop;
// }
// else if (e.Location.X >= Width - 4)
// {
// Cursor = Cursors.SizeWE; //Right
// adjustment_Position = Adjustment_position.Right;
// }
// else if (e.Location.X <= 4)
// {
// Cursor = Cursors.SizeWE; //Left
// adjustment_Position = Adjustment_position.Left;
// }
// else if (e.Location.Y >= Height - 4)
// {
// Cursor = Cursors.SizeNS; //Bottom
// adjustment_Position = Adjustment_position.Bottom;
// }
// else if (e.Location.Y <= 4)
// {
// Cursor = Cursors.SizeNS; //Top
// adjustment_Position = Adjustment_position.Top;
// }
// else
// {
// Cursor = Cursors.Arrow; //Middle
// adjustment_Position = Adjustment_position.Middle;
// }
//}
//private void Main_Leave(object sender, EventArgs e)
//{
// Cursor = Cursors.Arrow;// 移出窗体变为正常
//}
#region
private const int Guying_HTLEFT = 10;
private const int Guying_HTRIGHT = 11;
private const int Guying_HTTOP = 12;
private const int Guying_HTTOPLEFT = 13;
private const int Guying_HTTOPRIGHT = 14;
private const int Guying_HTBOTTOM = 15;
private const int Guying_HTBOTTOMLEFT = 0x10;
private const int Guying_HTBOTTOMRIGHT = 17;
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case 0x0084:
base.WndProc(ref m);
Point vPoint = new Point((int)m.LParam & 0xFFFF, (int)m.LParam >> 16 & 0xFFFF);
vPoint = PointToClient(vPoint);
if (vPoint.X <= 5)
if (vPoint.Y <= 5)
m.Result = (IntPtr)Guying_HTTOPLEFT;
else if (vPoint.Y >= ClientSize.Height - 5)
m.Result = (IntPtr)Guying_HTBOTTOMLEFT;
else
m.Result = (IntPtr)Guying_HTLEFT;
else if (vPoint.X >= ClientSize.Width - 5)
if (vPoint.Y <= 5)
m.Result = (IntPtr)Guying_HTTOPRIGHT;
else if (vPoint.Y >= ClientSize.Height - 5)
m.Result = (IntPtr)Guying_HTBOTTOMRIGHT;
else
m.Result = (IntPtr)Guying_HTRIGHT;
else if (vPoint.Y <= 5)
m.Result = (IntPtr)Guying_HTTOP;
else if (vPoint.Y >= ClientSize.Height - 5)
m.Result = (IntPtr)Guying_HTBOTTOM;
break;
case 0x0201://鼠标左键按下的消息
m.Msg = 0x00A1;//更改消息为非客户区按下鼠标
m.LParam = IntPtr.Zero; //默认值
m.WParam = new IntPtr(2);//鼠标放在标题栏内
base.WndProc(ref m);
break;
default:
base.WndProc(ref m);
break;
}
}
#endregion
}
}
+268
View File
@@ -0,0 +1,268 @@
namespace CSS_Solution.Forms
{
partial class MainForm
{
/// <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()
{
components = new System.ComponentModel.Container();
MainPanel = new Panel();
FunctionPanel = new Panel();
SideBar = new Panel();
SettingsPanel = new Panel();
SettingsPicture = new PictureBox();
HomePanel = new Panel();
HomePicture = new PictureBox();
RunTaskPanel = new Panel();
RunTaskPicture = new PictureBox();
SetTaskPanel = new Panel();
SetTaskPicture = new PictureBox();
Title = new Panel();
Title_name = new Label();
statusStrip = new StatusStrip();
timer1 = new System.Windows.Forms.Timer(components);
MainPanel.SuspendLayout();
SideBar.SuspendLayout();
SettingsPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)SettingsPicture).BeginInit();
HomePanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)HomePicture).BeginInit();
RunTaskPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)RunTaskPicture).BeginInit();
SetTaskPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)SetTaskPicture).BeginInit();
Title.SuspendLayout();
SuspendLayout();
//
// MainPanel
//
MainPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
MainPanel.BackColor = Color.FromArgb(25, 25, 25);
MainPanel.Controls.Add(FunctionPanel);
MainPanel.Controls.Add(SideBar);
MainPanel.Controls.Add(Title);
MainPanel.Controls.Add(statusStrip);
MainPanel.ForeColor = Color.White;
MainPanel.Location = new Point(3, 3);
MainPanel.Margin = new Padding(0);
MainPanel.Name = "MainPanel";
MainPanel.Size = new Size(1484, 814);
MainPanel.TabIndex = 5;
//
// FunctionPanel
//
FunctionPanel.Dock = DockStyle.Fill;
FunctionPanel.Location = new Point(81, 56);
FunctionPanel.Name = "FunctionPanel";
FunctionPanel.Size = new Size(1403, 736);
FunctionPanel.TabIndex = 2;
//
// SideBar
//
SideBar.BackColor = Color.FromArgb(26, 32, 45);
SideBar.Controls.Add(SettingsPanel);
SideBar.Controls.Add(HomePanel);
SideBar.Controls.Add(RunTaskPanel);
SideBar.Controls.Add(SetTaskPanel);
SideBar.Dock = DockStyle.Left;
SideBar.Location = new Point(0, 56);
SideBar.Name = "SideBar";
SideBar.Size = new Size(81, 736);
SideBar.TabIndex = 1;
//
// SettingsPanel
//
SettingsPanel.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
SettingsPanel.Controls.Add(SettingsPicture);
SettingsPanel.Location = new Point(10, 637);
SettingsPanel.Name = "SettingsPanel";
SettingsPanel.Size = new Size(61, 61);
SettingsPanel.TabIndex = 4;
SettingsPanel.Click += SwitchPanels_Click;
SettingsPanel.MouseEnter += SwitchPanels_MouseEnter;
//
// SettingsPicture
//
SettingsPicture.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
SettingsPicture.Image = Properties.Resources.settings;
SettingsPicture.Location = new Point(15, 15);
SettingsPicture.Name = "SettingsPicture";
SettingsPicture.Size = new Size(31, 31);
SettingsPicture.SizeMode = PictureBoxSizeMode.Zoom;
SettingsPicture.TabIndex = 1;
SettingsPicture.TabStop = false;
SettingsPicture.Click += SwitchPanels_Click;
SettingsPicture.MouseEnter += SwitchPanels_MouseEnter;
//
// HomePanel
//
HomePanel.Controls.Add(HomePicture);
HomePanel.Location = new Point(10, 10);
HomePanel.Name = "HomePanel";
HomePanel.Size = new Size(61, 61);
HomePanel.TabIndex = 3;
HomePanel.Click += SwitchPanels_Click;
HomePanel.MouseEnter += SwitchPanels_MouseEnter;
//
// HomePicture
//
HomePicture.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
HomePicture.Image = Properties.Resources.home;
HomePicture.Location = new Point(15, 15);
HomePicture.Name = "HomePicture";
HomePicture.Size = new Size(31, 31);
HomePicture.SizeMode = PictureBoxSizeMode.Zoom;
HomePicture.TabIndex = 2;
HomePicture.TabStop = false;
HomePicture.Click += SwitchPanels_Click;
HomePicture.MouseEnter += SwitchPanels_MouseEnter;
//
// RunTaskPanel
//
RunTaskPanel.Controls.Add(RunTaskPicture);
RunTaskPanel.Location = new Point(10, 152);
RunTaskPanel.Name = "RunTaskPanel";
RunTaskPanel.Size = new Size(61, 61);
RunTaskPanel.TabIndex = 2;
RunTaskPanel.Click += SwitchPanels_Click;
RunTaskPanel.MouseEnter += SwitchPanels_MouseEnter;
//
// RunTaskPicture
//
RunTaskPicture.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
RunTaskPicture.Image = Properties.Resources.Run;
RunTaskPicture.Location = new Point(15, 15);
RunTaskPicture.Name = "RunTaskPicture";
RunTaskPicture.Size = new Size(31, 31);
RunTaskPicture.SizeMode = PictureBoxSizeMode.Zoom;
RunTaskPicture.TabIndex = 1;
RunTaskPicture.TabStop = false;
RunTaskPicture.Click += SwitchPanels_Click;
RunTaskPicture.MouseEnter += SwitchPanels_MouseEnter;
//
// SetTaskPanel
//
SetTaskPanel.Controls.Add(SetTaskPicture);
SetTaskPanel.Location = new Point(10, 81);
SetTaskPanel.Name = "SetTaskPanel";
SetTaskPanel.Size = new Size(61, 61);
SetTaskPanel.TabIndex = 1;
SetTaskPanel.Click += SwitchPanels_Click;
SetTaskPanel.MouseEnter += SwitchPanels_MouseEnter;
//
// SetTaskPicture
//
SetTaskPicture.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
SetTaskPicture.Image = Properties.Resources.input;
SetTaskPicture.Location = new Point(15, 15);
SetTaskPicture.Name = "SetTaskPicture";
SetTaskPicture.Size = new Size(31, 31);
SetTaskPicture.SizeMode = PictureBoxSizeMode.Zoom;
SetTaskPicture.TabIndex = 0;
SetTaskPicture.TabStop = false;
SetTaskPicture.Click += SwitchPanels_Click;
SetTaskPicture.MouseEnter += SwitchPanels_MouseEnter;
//
// Title
//
Title.BackColor = Color.FromArgb(26, 32, 45);
Title.Controls.Add(Title_name);
Title.Dock = DockStyle.Top;
Title.Location = new Point(0, 0);
Title.Name = "Title";
Title.Size = new Size(1484, 56);
Title.TabIndex = 0;
Title.MouseDown += Title_MouseDown;
Title.MouseMove += Title_MouseMove;
//
// Title_name
//
Title_name.AutoSize = true;
Title_name.Font = new Font("Microsoft YaHei UI", 16F, FontStyle.Bold, GraphicsUnit.Point, 134);
Title_name.Location = new Point(5, 5);
Title_name.Name = "Title_name";
Title_name.Size = new Size(686, 42);
Title_name.TabIndex = 2;
Title_name.Text = "Course selection system Solution (C.s.s.S)";
//
// statusStrip
//
statusStrip.BackColor = Color.FromArgb(0, 122, 204);
statusStrip.ImageScalingSize = new Size(24, 24);
statusStrip.Location = new Point(0, 792);
statusStrip.Name = "statusStrip";
statusStrip.Size = new Size(1484, 22);
statusStrip.TabIndex = 3;
statusStrip.Text = "statusStrip1";
//
// MainForm
//
AutoScaleDimensions = new SizeF(11F, 24F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = Color.FromArgb(0, 122, 204);
ClientSize = new Size(1490, 820);
Controls.Add(MainPanel);
DoubleBuffered = true;
FormBorderStyle = FormBorderStyle.None;
MinimumSize = new Size(775, 378);
Name = "MainForm";
Text = "MainForm";
MainPanel.ResumeLayout(false);
MainPanel.PerformLayout();
SideBar.ResumeLayout(false);
SettingsPanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)SettingsPicture).EndInit();
HomePanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)HomePicture).EndInit();
RunTaskPanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)RunTaskPicture).EndInit();
SetTaskPanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)SetTaskPicture).EndInit();
Title.ResumeLayout(false);
Title.PerformLayout();
ResumeLayout(false);
}
#endregion
private Panel Title;
private FlowLayoutPanel flowLayoutPanel1;
private Panel top;
private Panel MainPanel;
private Panel SideBar;
private Label Title_name;
private PictureBox SetTaskPicture;
private Panel SetTaskPanel;
private Panel FunctionPanel;
private PictureBox RunTaskPicture;
private Panel RunTaskPanel;
private Panel HomePanel;
private PictureBox HomePicture;
private Panel SettingsPanel;
private PictureBox SettingsPicture;
private StatusStrip statusStrip;
private System.Windows.Forms.Timer timer1;
}
}
+61
View File
@@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Net.Http;
using System.Reflection.Emit;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CSS_Solution.Forms
{
partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
switch_panels = new List<(Panel, PictureBox)> { (HomePanel,HomePicture),(SetTaskPanel, SetTaskPicture), (RunTaskPanel, RunTaskPicture) ,(SettingsPanel,SettingsPicture)};
change_form(function_forms[0]);
}
//private void MainForm_Load(object sender, EventArgs e)
//{
// AllocConsole();
//}
//[DllImport("kernel32.dll", SetLastError = true)]
//[return: MarshalAs(UnmanagedType.Bool)]
//static extern bool AllocConsole();
private List<Form> function_forms = new List<Form> { new Welcome_Form(), new Change_Task_Form(), new Task_Run_Form(), new Settings_Form() };
private List<(Panel, PictureBox)> switch_panels;
private void change_form(Form form)
{
FunctionPanel.Controls.Clear();
form.TopLevel = false;
form.Dock = DockStyle.Fill;
FunctionPanel.Controls.Add(form);
form.Show();
}
private void SwitchPanels_Click(object sender, EventArgs e)
{
for (int i = 0; i < switch_panels.Count; i++)
{
var (panel, picture) = switch_panels[i];
if (panel == sender || picture == sender)
{
change_form(function_forms[i]);
break;
}
}
}
private void SwitchPanels_MouseEnter(object sender, EventArgs e)
{
}
}
}
+126
View File
@@ -0,0 +1,126 @@
<?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>
<metadata name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>174, 17</value>
</metadata>
</root>
+60
View File
@@ -0,0 +1,60 @@
namespace CSS_Solution.Forms
{
partial class Settings_Form
{
/// <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()
{
label1 = new Label();
SuspendLayout();
//
// label1
//
label1.AutoSize = true;
label1.ForeColor = Color.White;
label1.Location = new Point(12, 9);
label1.Name = "label1";
label1.Size = new Size(22, 24);
label1.TabIndex = 1;
label1.Text = "d";
//
// Settings_Form
//
AutoScaleDimensions = new SizeF(11F, 24F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(label1);
Name = "Settings_Form";
Text = "Settings_Form";
ResumeLayout(false);
PerformLayout();
}
#endregion
private Label label1;
}
}
+20
View File
@@ -0,0 +1,20 @@
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 CSS_Solution.Forms
{
public partial class Settings_Form : Form
{
public Settings_Form()
{
InitializeComponent();
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?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>
+59
View File
@@ -0,0 +1,59 @@
namespace CSS_Solution.Forms
{
partial class Task_Run_Form
{
/// <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()
{
label1 = new Label();
SuspendLayout();
//
// label1
//
label1.AutoSize = true;
label1.Location = new Point(12, 9);
label1.Name = "label1";
label1.Size = new Size(19, 24);
label1.TabIndex = 1;
label1.Text = "c";
//
// Task_Run_Form
//
AutoScaleDimensions = new SizeF(11F, 24F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(label1);
Name = "Task_Run_Form";
Text = "Task_Run_Form";
ResumeLayout(false);
PerformLayout();
}
#endregion
private Label label1;
}
}
+20
View File
@@ -0,0 +1,20 @@
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 CSS_Solution.Forms
{
public partial class Task_Run_Form : Form
{
public Task_Run_Form()
{
InitializeComponent();
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?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>
+166
View File
@@ -0,0 +1,166 @@
namespace CSS_Solution.Forms
{
partial class Welcome_Form
{
/// <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()
{
Welcome = new Label();
password = new TextBox();
ID = new TextBox();
MainPanel = new Panel();
countdown = new Countdown();
test = new Button();
Record = new Button();
SavePassword = new CheckBox();
MainPanel.SuspendLayout();
SuspendLayout();
//
// Welcome
//
Welcome.AutoSize = true;
Welcome.Font = new Font("Microsoft YaHei UI", 36F, FontStyle.Bold, GraphicsUnit.Point, 134);
Welcome.ForeColor = Color.White;
Welcome.Location = new Point(60, 30);
Welcome.Name = "Welcome";
Welcome.Size = new Size(737, 96);
Welcome.TabIndex = 0;
Welcome.Text = "Welcome To C.s.s.S";
//
// password
//
password.BackColor = Color.FromArgb(25, 25, 25);
password.BorderStyle = BorderStyle.FixedSingle;
password.Font = new Font("Microsoft YaHei UI", 15F, FontStyle.Italic, GraphicsUnit.Point, 134);
password.ForeColor = Color.Silver;
password.Location = new Point(86, 271);
password.Name = "password";
password.Size = new Size(390, 46);
password.TabIndex = 1;
password.Text = "密码...";
password.Enter += password_Enter;
password.Leave += password_Leave;
//
// ID
//
ID.BackColor = Color.FromArgb(25, 25, 25);
ID.BorderStyle = BorderStyle.FixedSingle;
ID.Font = new Font("Microsoft YaHei UI", 15F, FontStyle.Italic, GraphicsUnit.Point, 134);
ID.ForeColor = Color.Silver;
ID.Location = new Point(86, 186);
ID.Name = "ID";
ID.Size = new Size(390, 46);
ID.TabIndex = 2;
ID.Text = "学号...";
ID.Enter += ID_Enter;
ID.Leave += ID_Leave;
//
// MainPanel
//
MainPanel.Controls.Add(countdown);
MainPanel.Controls.Add(test);
MainPanel.Controls.Add(Record);
MainPanel.Controls.Add(SavePassword);
MainPanel.Controls.Add(password);
MainPanel.Controls.Add(Welcome);
MainPanel.Controls.Add(ID);
MainPanel.Dock = DockStyle.Fill;
MainPanel.Location = new Point(0, 0);
MainPanel.Name = "MainPanel";
MainPanel.Size = new Size(1403, 736);
MainPanel.TabIndex = 3;
//
// countdown
//
countdown.BackColor = Color.FromArgb(25, 25, 25);
countdown.Location = new Point(776, 186);
countdown.Name = "countdown";
countdown.Size = new Size(395, 222);
countdown.TabIndex = 6;
//
// test
//
test.BackColor = Color.FromArgb(25, 25, 25);
test.ForeColor = Color.White;
test.Location = new Point(269, 393);
test.Name = "test";
test.Size = new Size(112, 34);
test.TabIndex = 5;
test.Text = "验证密码";
test.UseVisualStyleBackColor = false;
//
// Record
//
Record.BackColor = Color.FromArgb(25, 25, 25);
Record.ForeColor = Color.White;
Record.Location = new Point(86, 393);
Record.Name = "Record";
Record.Size = new Size(112, 34);
Record.TabIndex = 4;
Record.Text = "保存密码";
Record.UseVisualStyleBackColor = false;
//
// SavePassword
//
SavePassword.AutoSize = true;
SavePassword.ForeColor = Color.White;
SavePassword.Location = new Point(86, 337);
SavePassword.Name = "SavePassword";
SavePassword.Size = new Size(180, 28);
SavePassword.TabIndex = 3;
SavePassword.Text = "保存密码到硬盘?";
SavePassword.UseVisualStyleBackColor = true;
SavePassword.CheckedChanged += SavePassword_CheckedChanged;
//
// Welcome_Form
//
AutoScaleDimensions = new SizeF(11F, 24F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = Color.FromArgb(25, 25, 25);
ClientSize = new Size(1403, 736);
Controls.Add(MainPanel);
FormBorderStyle = FormBorderStyle.None;
Name = "Welcome_Form";
Text = "Welcome_Form";
MainPanel.ResumeLayout(false);
MainPanel.PerformLayout();
ResumeLayout(false);
}
#endregion
private Label Welcome;
private TextBox ID;
private TextBox password;
private Panel panel1;
private Panel MainPanel;
private FontDialog fontDialog1;
private CheckBox SavePassword;
private Button Record;
private Button test;
private Countdown countdown;
}
}
+78
View File
@@ -0,0 +1,78 @@
using Microsoft.Extensions.Logging;
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 CSS_Solution.Forms
{
public partial class Welcome_Form : Form
{
public Welcome_Form()
{
InitializeComponent();
}
private Font normal_font = new Font("Microsoft YaHei UI", 15F, FontStyle.Regular, GraphicsUnit.Point, 134);
private Font italic_font = new Font("Microsoft YaHei UI", 15F, FontStyle.Italic, GraphicsUnit.Point, 134);
private void ID_Enter(object sender, EventArgs e)
{
if (ID.Font != normal_font)
{
ID.Text = string.Empty;
ID.ForeColor = Color.White;
ID.Font = normal_font;
}
}
private void ID_Leave(object sender, EventArgs e)
{
if (ID.Text == string.Empty)
{
ID.ForeColor = Color.Silver;
ID.Font = italic_font;
ID.Text = "学号...";
}
}
private void password_Enter(object sender, EventArgs e)
{
if (password.Font != normal_font)
{
password.Text = string.Empty;
password.ForeColor = Color.White;
password.Font = normal_font;
password.PasswordChar = '*';
}
}
private void password_Leave(object sender, EventArgs e)
{
if (password.Text == string.Empty)
{
password.ForeColor = Color.Silver;
password.Font = italic_font;
password.Text = "密码...";
password.PasswordChar = '\0';
}
}
bool save_disk_info_showed = false;
private void SavePassword_CheckedChanged(object sender, EventArgs e)
{
if (sender == null||save_disk_info_showed)
return;
CheckBox? checkBox = sender as CheckBox;
if (checkBox == null) return;
if(checkBox.Checked)
{
save_disk_info_showed = true;
MessageBox.Show("注意,密码确实会保存为密文,但是该密文可直接用于登录网站(教务管理系统),理想状态下,该密码应当仅保存在内存中。");
}
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?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>