diff --git a/TimeTable/view/AddText.Designer.cs b/TimeTable/view/AddText.Designer.cs new file mode 100644 index 0000000..d23f358 --- /dev/null +++ b/TimeTable/view/AddText.Designer.cs @@ -0,0 +1,94 @@ +namespace TimeTable.view { + partial class AddText { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + private Main main; + + public AddText(Main mainView) { + this.main = mainView; + } + + /// + /// 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() { + textLbl = new Label(); + textBox = new TextBox(); + cancelBtn = new Button(); + saveBtn = new Button(); + SuspendLayout(); + // + // textLbl + // + textLbl.AutoSize = true; + textLbl.Location = new Point(12, 9); + textLbl.Name = "textLbl"; + textLbl.Size = new Size(36, 20); + textLbl.TabIndex = 0; + textLbl.Text = "Text"; + // + // textBox + // + textBox.Location = new Point(54, 6); + textBox.Name = "textBox"; + textBox.Size = new Size(277, 27); + textBox.TabIndex = 1; + // + // cancelBtn + // + cancelBtn.Location = new Point(237, 50); + cancelBtn.Name = "cancelBtn"; + cancelBtn.Size = new Size(94, 29); + cancelBtn.TabIndex = 2; + cancelBtn.Text = "Cancel"; + cancelBtn.UseVisualStyleBackColor = true; + // + // saveBtn + // + saveBtn.Location = new Point(137, 50); + saveBtn.Name = "saveBtn"; + saveBtn.Size = new Size(94, 29); + saveBtn.TabIndex = 3; + saveBtn.Text = "Save"; + saveBtn.UseVisualStyleBackColor = true; + // + // AddText + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(343, 102); + Controls.Add(saveBtn); + Controls.Add(cancelBtn); + Controls.Add(textBox); + Controls.Add(textLbl); + FormBorderStyle = FormBorderStyle.FixedSingle; + Name = "AddText"; + Text = "Please add Text"; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private Label textLbl; + private TextBox textBox; + private Button cancelBtn; + private Button saveBtn; + } +} \ No newline at end of file diff --git a/TimeTable/view/AddText.cs b/TimeTable/view/AddText.cs new file mode 100644 index 0000000..16024f7 --- /dev/null +++ b/TimeTable/view/AddText.cs @@ -0,0 +1,17 @@ +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 TimeTable.view { + public partial class AddText : Form { + public AddText() { + InitializeComponent(); + } + } +} diff --git a/TimeTable/view/AddText.resx b/TimeTable/view/AddText.resx new file mode 100644 index 0000000..8b2ff64 --- /dev/null +++ b/TimeTable/view/AddText.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 diff --git a/TimeTable/view/Main.Designer.cs b/TimeTable/view/Main.Designer.cs index cf07070..7079917 100644 --- a/TimeTable/view/Main.Designer.cs +++ b/TimeTable/view/Main.Designer.cs @@ -316,6 +316,8 @@ namespace TimeTable { } private void btnStopClick(object sender, EventArgs e) { + AddText text = new AddText(); + text. String cmd = SqliteTimeTableCommands.UpdateEndCmd(uid, DateTime.Now); executeSql(cmd);