From 2fe4a2363869016a918a4822e9f694c834620ff5 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Wed, 2 Aug 2017 11:59:42 -0500 Subject: [PATCH] Make give and save homework buttons --- .../PersonProfileForm.Designer.cs | 30 +++++++++++++++++-- EduNetworkBuilder/PersonProfileForm.cs | 10 +++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/EduNetworkBuilder/PersonProfileForm.Designer.cs b/EduNetworkBuilder/PersonProfileForm.Designer.cs index 6b677e7..b216ef1 100644 --- a/EduNetworkBuilder/PersonProfileForm.Designer.cs +++ b/EduNetworkBuilder/PersonProfileForm.Designer.cs @@ -63,6 +63,8 @@ this.tvClasswork = new System.Windows.Forms.TreeView(); this.btnExit = new System.Windows.Forms.Button(); this.btnGenerateStudentFiles = new System.Windows.Forms.Button(); + this.btnHWGive = new System.Windows.Forms.Button(); + this.btnHWSave = new System.Windows.Forms.Button(); this.tcTabControl.SuspendLayout(); this.TabProfile.SuspendLayout(); this.TabClasswork.SuspendLayout(); @@ -192,6 +194,8 @@ // // TabHomework // + this.TabHomework.Controls.Add(this.btnHWSave); + this.TabHomework.Controls.Add(this.btnHWGive); this.TabHomework.Controls.Add(this.btnLaunch); this.TabHomework.Controls.Add(this.btnHWDelete); this.TabHomework.Controls.Add(this.lblHWSubmitted); @@ -214,7 +218,7 @@ // // btnLaunch // - this.btnLaunch.Location = new System.Drawing.Point(10, 177); + this.btnLaunch.Location = new System.Drawing.Point(91, 148); this.btnLaunch.Name = "btnLaunch"; this.btnLaunch.Size = new System.Drawing.Size(75, 23); this.btnLaunch.TabIndex = 11; @@ -224,7 +228,7 @@ // // btnHWDelete // - this.btnHWDelete.Location = new System.Drawing.Point(175, 177); + this.btnHWDelete.Location = new System.Drawing.Point(172, 177); this.btnHWDelete.Name = "btnHWDelete"; this.btnHWDelete.Size = new System.Drawing.Size(75, 23); this.btnHWDelete.TabIndex = 10; @@ -422,6 +426,26 @@ this.btnGenerateStudentFiles.UseVisualStyleBackColor = true; this.btnGenerateStudentFiles.Click += new System.EventHandler(this.btnGenerateStudentFiles_Click); // + // btnHWGive + // + this.btnHWGive.Location = new System.Drawing.Point(172, 148); + this.btnHWGive.Name = "btnHWGive"; + this.btnHWGive.Size = new System.Drawing.Size(75, 23); + this.btnHWGive.TabIndex = 12; + this.btnHWGive.Text = "Give"; + this.btnHWGive.UseVisualStyleBackColor = true; + this.btnHWGive.Click += new System.EventHandler(this.btnHWGive_Click); + // + // btnHWSave + // + this.btnHWSave.Location = new System.Drawing.Point(91, 177); + this.btnHWSave.Name = "btnHWSave"; + this.btnHWSave.Size = new System.Drawing.Size(75, 23); + this.btnHWSave.TabIndex = 13; + this.btnHWSave.Text = "Save"; + this.btnHWSave.UseVisualStyleBackColor = true; + this.btnHWSave.Click += new System.EventHandler(this.btnHWSave_Click); + // // PersonProfileForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); @@ -483,5 +507,7 @@ private System.Windows.Forms.Button btnStudentChangePassword; private System.Windows.Forms.Button btnImportStudents; private System.Windows.Forms.Button btnGenerateStudentFiles; + private System.Windows.Forms.Button btnHWSave; + private System.Windows.Forms.Button btnHWGive; } } \ No newline at end of file diff --git a/EduNetworkBuilder/PersonProfileForm.cs b/EduNetworkBuilder/PersonProfileForm.cs index 073e986..bcd855c 100644 --- a/EduNetworkBuilder/PersonProfileForm.cs +++ b/EduNetworkBuilder/PersonProfileForm.cs @@ -691,5 +691,15 @@ namespace EduNetworkBuilder //Now, print the stats MessageBox.Show(string.Format(NB.Translate("PPF_StudentWriteStats"),"\n\t" + NumStudent, "\n\t" + NumMade, "\n\t" + NumSkipped)); } + + private void btnHWGive_Click(object sender, EventArgs e) + { + + } + + private void btnHWSave_Click(object sender, EventArgs e) + { + + } } } \ No newline at end of file