added feature

This commit is contained in:
Kuro 2025-03-23 01:30:19 +01:00
parent 64f2acb943
commit cf360313d8
3 changed files with 11 additions and 16 deletions

View File

@ -58,6 +58,7 @@
cancelBtn.TabIndex = 2; cancelBtn.TabIndex = 2;
cancelBtn.Text = "Cancel"; cancelBtn.Text = "Cancel";
cancelBtn.UseVisualStyleBackColor = true; cancelBtn.UseVisualStyleBackColor = true;
cancelBtn.Click += btnCancelClick;
// //
// saveBtn // saveBtn
// //
@ -67,6 +68,7 @@
saveBtn.TabIndex = 3; saveBtn.TabIndex = 3;
saveBtn.Text = "Save"; saveBtn.Text = "Save";
saveBtn.UseVisualStyleBackColor = true; saveBtn.UseVisualStyleBackColor = true;
saveBtn.Click += saveClick;
// //
// AddText // AddText
// //
@ -86,6 +88,13 @@
#endregion #endregion
private void btnCancelClick(object sender, EventArgs e) {
this.Close();
}
private void saveClick(object sender, EventArgs e) {
}
private Label textLbl; private Label textLbl;
private TextBox textBox; private TextBox textBox;
private Button cancelBtn; private Button cancelBtn;

View File

@ -105,17 +105,6 @@ namespace TimeTable.view {
PerformLayout(); PerformLayout();
} }
private void btnStopClick(object sender, EventArgs e) {
}
private void btnResumeClick(object sender, EventArgs e) {
}
private void btnCancelClick(object sender, EventArgs e) { private void btnCancelClick(object sender, EventArgs e) {
this.Close(); this.Close();
} }

View File

@ -316,10 +316,7 @@ namespace TimeTable {
} }
private void btnStopClick(object sender, EventArgs e) { private void btnStopClick(object sender, EventArgs e) {
AddText text = new AddText(); AddText text = new AddText(this);
text.
String cmd = SqliteTimeTableCommands.UpdateEndCmd(uid, DateTime.Now);
executeSql(cmd);
} }
private void btnTaskStopClick(object sender, EventArgs e) { private void btnTaskStopClick(object sender, EventArgs e) {