diff --git a/TimeTable.sln b/TimeTable.sln new file mode 100644 index 0000000..a066f02 --- /dev/null +++ b/TimeTable.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35527.113 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeTable", "TimeTable\TimeTable.csproj", "{4897864C-76F4-40DA-90CB-0F95F56737BF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4897864C-76F4-40DA-90CB-0F95F56737BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4897864C-76F4-40DA-90CB-0F95F56737BF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4897864C-76F4-40DA-90CB-0F95F56737BF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4897864C-76F4-40DA-90CB-0F95F56737BF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TimeTable/Program.cs b/TimeTable/Program.cs new file mode 100644 index 0000000..2581ab9 --- /dev/null +++ b/TimeTable/Program.cs @@ -0,0 +1,17 @@ +namespace TimeTable +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Main()); + } + } +} \ No newline at end of file diff --git a/TimeTable/TimeTable.csproj b/TimeTable/TimeTable.csproj new file mode 100644 index 0000000..0ddf874 --- /dev/null +++ b/TimeTable/TimeTable.csproj @@ -0,0 +1,15 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + + + + + \ No newline at end of file diff --git a/TimeTable/model/Basic.cs b/TimeTable/model/Basic.cs new file mode 100644 index 0000000..616b51a --- /dev/null +++ b/TimeTable/model/Basic.cs @@ -0,0 +1,6 @@ +namespace TimeTable.model { + internal class Basic { + DateTime time { get; set; } + string name { get; set; } + } +} diff --git a/TimeTable/view/Main.Designer.cs b/TimeTable/view/Main.Designer.cs new file mode 100644 index 0000000..02dd764 --- /dev/null +++ b/TimeTable/view/Main.Designer.cs @@ -0,0 +1,160 @@ +namespace TimeTable +{ + partial class Main + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() { + btnPanel = new Panel(); + btnTaskStop = new Button(); + btnTaskStart = new Button(); + btnStopResume = new Button(); + btnStart = new Button(); + tableView = new Panel(); + dataGridView1 = new DataGridView(); + btnPanel.SuspendLayout(); + tableView.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit(); + SuspendLayout(); + // + // btnPanel + // + btnPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; + btnPanel.Controls.Add(btnTaskStop); + btnPanel.Controls.Add(btnTaskStart); + btnPanel.Controls.Add(btnStopResume); + btnPanel.Controls.Add(btnStart); + btnPanel.Dock = DockStyle.Left; + btnPanel.Location = new Point(0, 0); + btnPanel.Name = "btnPanel"; + btnPanel.Size = new Size(233, 171); + btnPanel.TabIndex = 0; + // + // btnTaskStop + // + btnTaskStop.Location = new Point(103, 38); + btnTaskStop.Name = "btnTaskStop"; + btnTaskStop.Size = new Size(114, 29); + btnTaskStop.TabIndex = 3; + btnTaskStop.Text = "Task Stop"; + btnTaskStop.UseVisualStyleBackColor = true; + btnTaskStart.Click += this.btnTaskStopClick; + + // + // btnTaskStart + // + btnTaskStart.Location = new Point(3, 38); + btnTaskStart.Name = "btnTaskStart"; + btnTaskStart.Size = new Size(94, 29); + btnTaskStart.TabIndex = 2; + btnTaskStart.Text = "Task Start"; + btnTaskStart.UseVisualStyleBackColor = true; + btnTaskStart.Click += this.btnTaskStartClick; + // + // btnStopResume + // + btnStopResume.Location = new Point(103, 3); + btnStopResume.Name = "btnStopResume"; + btnStopResume.Size = new Size(114, 29); + btnStopResume.TabIndex = 1; + btnStopResume.Text = "Stop/Resume"; + btnStopResume.UseVisualStyleBackColor = true; + btnTaskStart.Click += this.btnStopResumeClick; + // + // btnStart + // + btnStart.Location = new Point(3, 3); + btnStart.Name = "btnStart"; + btnStart.Size = new Size(94, 29); + btnStart.TabIndex = 0; + btnStart.Text = "Start"; + btnStart.UseVisualStyleBackColor = true; + btnStart.Click += this.btnStartClick; + // + // tableView + // + tableView.AutoSizeMode = AutoSizeMode.GrowAndShrink; + tableView.Controls.Add(dataGridView1); + tableView.Dock = DockStyle.Right; + tableView.Location = new Point(239, 0); + tableView.Name = "tableView"; + tableView.Size = new Size(477, 171); + tableView.TabIndex = 1; + // + // dataGridView1 + // + dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView1.Dock = DockStyle.Fill; + dataGridView1.Location = new Point(0, 0); + dataGridView1.Name = "dataGridView1"; + dataGridView1.RowHeadersWidth = 51; + dataGridView1.Size = new Size(477, 171); + dataGridView1.TabIndex = 0; + // + // Main + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(716, 171); + Controls.Add(tableView); + Controls.Add(btnPanel); + Name = "Main"; + Text = "TimeTable"; + btnPanel.ResumeLayout(false); + tableView.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit(); + ResumeLayout(false); + } + + + + private void btnStartClick(object sender, EventArgs e) { + + } + + private void btnTaskStartClick(object sender, EventArgs e) { + + } + + private void btnStopResumeClick(object sender, EventArgs e) { + + } + private void btnTaskStopClick(object sender, EventArgs e) { + + } + + + + #endregion + + private Panel btnPanel; + private Button btnTaskStop; + private Button btnTaskStart; + private Button btnStopResume; + private Button btnStart; + private Panel tableView; + private DataGridView dataGridView1; + } +} diff --git a/TimeTable/view/Main.cs b/TimeTable/view/Main.cs new file mode 100644 index 0000000..ff07014 --- /dev/null +++ b/TimeTable/view/Main.cs @@ -0,0 +1,7 @@ +namespace TimeTable { + public partial class Main : Form { + public Main() { + InitializeComponent(); + } + } +} diff --git a/TimeTable/view/Main.resx b/TimeTable/view/Main.resx new file mode 100644 index 0000000..8b2ff64 --- /dev/null +++ b/TimeTable/view/Main.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file