Add submit / update menu items for the network
This commit is contained in:
parent
8fdefcaabc
commit
fef2d80981
40
EduNetworkBuilder/NetworkBuilder.Designer.cs
generated
40
EduNetworkBuilder/NetworkBuilder.Designer.cs
generated
@ -83,6 +83,8 @@
|
|||||||
this.HelpPanel = new System.Windows.Forms.Panel();
|
this.HelpPanel = new System.Windows.Forms.Panel();
|
||||||
this.cbViewTitles = new System.Windows.Forms.CheckBox();
|
this.cbViewTitles = new System.Windows.Forms.CheckBox();
|
||||||
this.myProgressBar = new System.Windows.Forms.ProgressBar();
|
this.myProgressBar = new System.Windows.Forms.ProgressBar();
|
||||||
|
this.updateClassworkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.submitHomeworkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.msMainMenuStrip.SuspendLayout();
|
this.msMainMenuStrip.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pbNetworkView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pbNetworkView)).BeginInit();
|
||||||
this.HelpPanel.SuspendLayout();
|
this.HelpPanel.SuspendLayout();
|
||||||
@ -162,7 +164,9 @@
|
|||||||
this.changeLanguageToolStripMenuItem,
|
this.changeLanguageToolStripMenuItem,
|
||||||
this.classSetupToolStripMenuItem,
|
this.classSetupToolStripMenuItem,
|
||||||
this.profileToolStripMenuItem,
|
this.profileToolStripMenuItem,
|
||||||
this.addToClassworkToolStripMenuItem});
|
this.addToClassworkToolStripMenuItem,
|
||||||
|
this.updateClassworkToolStripMenuItem,
|
||||||
|
this.submitHomeworkToolStripMenuItem});
|
||||||
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
||||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(47, 24);
|
this.editToolStripMenuItem.Size = new System.Drawing.Size(47, 24);
|
||||||
this.editToolStripMenuItem.Text = "Edit";
|
this.editToolStripMenuItem.Text = "Edit";
|
||||||
@ -170,59 +174,59 @@
|
|||||||
// cutToolStripMenuItem
|
// cutToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
|
this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
|
||||||
this.cutToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.cutToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.cutToolStripMenuItem.Text = "Cut";
|
this.cutToolStripMenuItem.Text = "Cut";
|
||||||
//
|
//
|
||||||
// copyToolStripMenuItem
|
// copyToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
|
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
|
||||||
this.copyToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.copyToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.copyToolStripMenuItem.Text = "Copy";
|
this.copyToolStripMenuItem.Text = "Copy";
|
||||||
//
|
//
|
||||||
// pasteToolStripMenuItem
|
// pasteToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
|
this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
|
||||||
this.pasteToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.pasteToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.pasteToolStripMenuItem.Text = "Paste";
|
this.pasteToolStripMenuItem.Text = "Paste";
|
||||||
//
|
//
|
||||||
// undoToolStripMenuItem
|
// undoToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
|
this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
|
||||||
this.undoToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.undoToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.undoToolStripMenuItem.Text = "Undo";
|
this.undoToolStripMenuItem.Text = "Undo";
|
||||||
//
|
//
|
||||||
// optionsToolStripMenuItem
|
// optionsToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
||||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.optionsToolStripMenuItem.Text = "Options";
|
this.optionsToolStripMenuItem.Text = "Options";
|
||||||
this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
|
this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// changeLanguageToolStripMenuItem
|
// changeLanguageToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.changeLanguageToolStripMenuItem.Name = "changeLanguageToolStripMenuItem";
|
this.changeLanguageToolStripMenuItem.Name = "changeLanguageToolStripMenuItem";
|
||||||
this.changeLanguageToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.changeLanguageToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.changeLanguageToolStripMenuItem.Text = "Change Language";
|
this.changeLanguageToolStripMenuItem.Text = "Change Language";
|
||||||
this.changeLanguageToolStripMenuItem.Click += new System.EventHandler(this.changeLanguageToolStripMenuItem_Click);
|
this.changeLanguageToolStripMenuItem.Click += new System.EventHandler(this.changeLanguageToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// classSetupToolStripMenuItem
|
// classSetupToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.classSetupToolStripMenuItem.Name = "classSetupToolStripMenuItem";
|
this.classSetupToolStripMenuItem.Name = "classSetupToolStripMenuItem";
|
||||||
this.classSetupToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.classSetupToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.classSetupToolStripMenuItem.Text = "Class Setup";
|
this.classSetupToolStripMenuItem.Text = "Class Setup";
|
||||||
this.classSetupToolStripMenuItem.Click += new System.EventHandler(this.classSetupToolStripMenuItem_Click);
|
this.classSetupToolStripMenuItem.Click += new System.EventHandler(this.classSetupToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// profileToolStripMenuItem
|
// profileToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.profileToolStripMenuItem.Name = "profileToolStripMenuItem";
|
this.profileToolStripMenuItem.Name = "profileToolStripMenuItem";
|
||||||
this.profileToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.profileToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.profileToolStripMenuItem.Text = "Profile";
|
this.profileToolStripMenuItem.Text = "Profile";
|
||||||
this.profileToolStripMenuItem.Click += new System.EventHandler(this.profileToolStripMenuItem_Click);
|
this.profileToolStripMenuItem.Click += new System.EventHandler(this.profileToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// addToClassworkToolStripMenuItem
|
// addToClassworkToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.addToClassworkToolStripMenuItem.Name = "addToClassworkToolStripMenuItem";
|
this.addToClassworkToolStripMenuItem.Name = "addToClassworkToolStripMenuItem";
|
||||||
this.addToClassworkToolStripMenuItem.Size = new System.Drawing.Size(203, 26);
|
this.addToClassworkToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
this.addToClassworkToolStripMenuItem.Text = "Add To Classwork";
|
this.addToClassworkToolStripMenuItem.Text = "Add To Classwork";
|
||||||
this.addToClassworkToolStripMenuItem.Click += new System.EventHandler(this.addToClassworkToolStripMenuItem_Click);
|
this.addToClassworkToolStripMenuItem.Click += new System.EventHandler(this.addToClassworkToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
@ -580,6 +584,20 @@
|
|||||||
this.myProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
|
this.myProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
|
||||||
this.myProgressBar.TabIndex = 11;
|
this.myProgressBar.TabIndex = 11;
|
||||||
//
|
//
|
||||||
|
// updateClassworkToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.updateClassworkToolStripMenuItem.Name = "updateClassworkToolStripMenuItem";
|
||||||
|
this.updateClassworkToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
|
this.updateClassworkToolStripMenuItem.Text = "Update Classwork";
|
||||||
|
this.updateClassworkToolStripMenuItem.Click += new System.EventHandler(this.updateClassworkToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// submitHomeworkToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.submitHomeworkToolStripMenuItem.Name = "submitHomeworkToolStripMenuItem";
|
||||||
|
this.submitHomeworkToolStripMenuItem.Size = new System.Drawing.Size(208, 26);
|
||||||
|
this.submitHomeworkToolStripMenuItem.Text = "Submit Homework";
|
||||||
|
this.submitHomeworkToolStripMenuItem.Click += new System.EventHandler(this.submitHomeworkToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// BuilderWindow
|
// BuilderWindow
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||||
@ -670,6 +688,8 @@
|
|||||||
private System.Windows.Forms.ToolStripMenuItem classSetupToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem classSetupToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem profileToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem profileToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem addToClassworkToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem addToClassworkToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem updateClassworkToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem submitHomeworkToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -401,9 +401,32 @@ namespace EduNetworkBuilder
|
|||||||
this.Text = "EduNetworkBuilder : " + CurrentUser.FullName;
|
this.Text = "EduNetworkBuilder : " + CurrentUser.FullName;
|
||||||
}
|
}
|
||||||
if (CurrentUser == null || !CurrentUser.isAdmin)
|
if (CurrentUser == null || !CurrentUser.isAdmin)
|
||||||
|
{
|
||||||
addToClassworkToolStripMenuItem.Visible = false;
|
addToClassworkToolStripMenuItem.Visible = false;
|
||||||
|
submitHomeworkToolStripMenuItem.Visible = false;
|
||||||
|
updateClassworkToolStripMenuItem.Visible = false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
addToClassworkToolStripMenuItem.Visible = true;
|
{
|
||||||
|
if (CurrentUser.isAdmin)
|
||||||
|
{
|
||||||
|
submitHomeworkToolStripMenuItem.Visible = false;
|
||||||
|
if (myNetwork.WhatFrom == null)
|
||||||
|
{
|
||||||
|
//If this is not part of homework yet, we can add it
|
||||||
|
addToClassworkToolStripMenuItem.Visible = true;
|
||||||
|
updateClassworkToolStripMenuItem.Visible = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//If this is homework, we can update it
|
||||||
|
addToClassworkToolStripMenuItem.Visible = false;
|
||||||
|
updateClassworkToolStripMenuItem.Visible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (myNetwork.WhatFrom != null) //we are a student doing homework
|
||||||
|
submitHomeworkToolStripMenuItem.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
List<string> tLoadList = new List<string>();
|
List<string> tLoadList = new List<string>();
|
||||||
loadToolStripMenuItem.DropDownItems.Clear();
|
loadToolStripMenuItem.DropDownItems.Clear();
|
||||||
@ -1946,5 +1969,14 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void updateClassworkToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void submitHomeworkToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user