Add some non-operable buttons. Just to get the idea across for now. Export all homework, Push homework to all students.

This commit is contained in:
Tim Young 2017-08-02 15:35:43 -05:00
parent 7265b07e0e
commit eeb0536b07
2 changed files with 28 additions and 0 deletions

View File

@ -65,12 +65,15 @@
this.btnGenerateStudentFiles = new System.Windows.Forms.Button(); this.btnGenerateStudentFiles = new System.Windows.Forms.Button();
this.btnHWGive = new System.Windows.Forms.Button(); this.btnHWGive = new System.Windows.Forms.Button();
this.btnHWSave = new System.Windows.Forms.Button(); this.btnHWSave = new System.Windows.Forms.Button();
this.btnAllHomeworkToStudents = new System.Windows.Forms.Button();
this.btnExportAllHomework = new System.Windows.Forms.Button();
this.tcTabControl.SuspendLayout(); this.tcTabControl.SuspendLayout();
this.TabProfile.SuspendLayout(); this.TabProfile.SuspendLayout();
this.TabClasswork.SuspendLayout(); this.TabClasswork.SuspendLayout();
this.tcTreeData.SuspendLayout(); this.tcTreeData.SuspendLayout();
this.tabClass.SuspendLayout(); this.tabClass.SuspendLayout();
this.TabHomework.SuspendLayout(); this.TabHomework.SuspendLayout();
this.TabStudents.SuspendLayout();
this.TabStudent.SuspendLayout(); this.TabStudent.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -172,6 +175,7 @@
// //
// tabClass // tabClass
// //
this.tabClass.Controls.Add(this.btnExportAllHomework);
this.tabClass.Controls.Add(this.btnGenerateStudentFiles); this.tabClass.Controls.Add(this.btnGenerateStudentFiles);
this.tabClass.Controls.Add(this.btnImportStudents); this.tabClass.Controls.Add(this.btnImportStudents);
this.tabClass.Location = new System.Drawing.Point(4, 25); this.tabClass.Location = new System.Drawing.Point(4, 25);
@ -320,6 +324,7 @@
// //
// TabStudents // TabStudents
// //
this.TabStudents.Controls.Add(this.btnAllHomeworkToStudents);
this.TabStudents.Location = new System.Drawing.Point(4, 25); this.TabStudents.Location = new System.Drawing.Point(4, 25);
this.TabStudents.Name = "TabStudents"; this.TabStudents.Name = "TabStudents";
this.TabStudents.Padding = new System.Windows.Forms.Padding(3); this.TabStudents.Padding = new System.Windows.Forms.Padding(3);
@ -447,6 +452,24 @@
this.btnHWSave.UseVisualStyleBackColor = true; this.btnHWSave.UseVisualStyleBackColor = true;
this.btnHWSave.Click += new System.EventHandler(this.btnHWSave_Click); this.btnHWSave.Click += new System.EventHandler(this.btnHWSave_Click);
// //
// btnAllHomeworkToStudents
//
this.btnAllHomeworkToStudents.Location = new System.Drawing.Point(23, 29);
this.btnAllHomeworkToStudents.Name = "btnAllHomeworkToStudents";
this.btnAllHomeworkToStudents.Size = new System.Drawing.Size(207, 23);
this.btnAllHomeworkToStudents.TabIndex = 6;
this.btnAllHomeworkToStudents.Text = "All Homework To Students";
this.btnAllHomeworkToStudents.UseVisualStyleBackColor = true;
//
// btnExportAllHomework
//
this.btnExportAllHomework.Location = new System.Drawing.Point(6, 64);
this.btnExportAllHomework.Name = "btnExportAllHomework";
this.btnExportAllHomework.Size = new System.Drawing.Size(152, 23);
this.btnExportAllHomework.TabIndex = 8;
this.btnExportAllHomework.Text = "Export Homework";
this.btnExportAllHomework.UseVisualStyleBackColor = true;
//
// PersonProfileForm // PersonProfileForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@ -465,6 +488,7 @@
this.tabClass.ResumeLayout(false); this.tabClass.ResumeLayout(false);
this.TabHomework.ResumeLayout(false); this.TabHomework.ResumeLayout(false);
this.TabHomework.PerformLayout(); this.TabHomework.PerformLayout();
this.TabStudents.ResumeLayout(false);
this.TabStudent.ResumeLayout(false); this.TabStudent.ResumeLayout(false);
this.TabStudent.PerformLayout(); this.TabStudent.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
@ -510,5 +534,7 @@
private System.Windows.Forms.Button btnGenerateStudentFiles; private System.Windows.Forms.Button btnGenerateStudentFiles;
private System.Windows.Forms.Button btnHWSave; private System.Windows.Forms.Button btnHWSave;
private System.Windows.Forms.Button btnHWGive; private System.Windows.Forms.Button btnHWGive;
private System.Windows.Forms.Button btnExportAllHomework;
private System.Windows.Forms.Button btnAllHomeworkToStudents;
} }
} }

View File

@ -91,6 +91,8 @@ namespace EduNetworkBuilder
myTooltip.SetToolTip(btnImportStudents, NB.Translate("PPF_ImportToolTip")); myTooltip.SetToolTip(btnImportStudents, NB.Translate("PPF_ImportToolTip"));
myTooltip.SetToolTip(btnHWGive, NB.Translate("PPF_HWGiveToolTip")); myTooltip.SetToolTip(btnHWGive, NB.Translate("PPF_HWGiveToolTip"));
myTooltip.SetToolTip(btnHWSave, NB.Translate("PPF_HWSaveToolTip")); myTooltip.SetToolTip(btnHWSave, NB.Translate("PPF_HWSaveToolTip"));
myTooltip.SetToolTip(btnAllHomeworkToStudents, "Take all currently defined homework and put it into the student accounts. Do at the beginning of a class and before you generate the student files for the first time.");
myTooltip.SetToolTip(btnExportAllHomework, "Export all the homework into a single homework file. Use this file to set up for another class.");
if (CurrentUser == null && FileName == "") if (CurrentUser == null && FileName == "")
{ {