diff --git a/EduNetworkBuilder/EduNetworkBuilder.csproj b/EduNetworkBuilder/EduNetworkBuilder.csproj index 06c91f4..902a6bd 100644 --- a/EduNetworkBuilder/EduNetworkBuilder.csproj +++ b/EduNetworkBuilder/EduNetworkBuilder.csproj @@ -149,6 +149,7 @@ + @@ -167,6 +168,7 @@ RTFWindow.cs + Form diff --git a/EduNetworkBuilder/PersonClass.cs b/EduNetworkBuilder/PersonClass.cs new file mode 100644 index 0000000..db55a73 --- /dev/null +++ b/EduNetworkBuilder/PersonClass.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EduNetworkBuilder +{ + class PersonClass + { + string filepath=""; //the path of the file. We use the username as the file-name. + + string _UserName=""; + /// + /// The username of the person. Will be used as a filename. Cannot be changed once it is set + /// + public string UserName { get { return _UserName; } } + + /// + /// The full name of the person. Can have spaces and punctuation. Can change as one wants it changed. + /// + public string FullName = ""; + List Passwords; + /// + /// The AltPassword is mainly used to hold the admin decrypting password. The student account will + /// use this to encrypt the student password, so the admin can open their file. + /// + string AltPassword = ""; + /// + /// Used to determine if the user we are working with is the admin account. + /// + bool isAdmin = false; + /// + /// EverCompletedPuzzles is a list of puzzles that they have completed once. + /// + List EverCompletedPuzzles = new List(); + + List Projects = new List(); + } +} diff --git a/EduNetworkBuilder/SchoolworkClass.cs b/EduNetworkBuilder/SchoolworkClass.cs new file mode 100644 index 0000000..0294d4e --- /dev/null +++ b/EduNetworkBuilder/SchoolworkClass.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EduNetworkBuilder +{ + /// + /// A class holding a project that needs to be done as either a test, quiz, or homework + /// + public class SchoolworkClass + { + Network theProject = null; + /// + /// The name of the project. Homework3, Quiz 4, etc. + /// + string Name = ""; + /// + /// The short description of the project. + /// + string Description = ""; + /// + /// The class to which this project belongs. If the student is using this for multiple classes, + /// but more likely just for the teacher to organize things with. + /// + string Class = ""; + /// + /// The date / time that the project is due. + /// + DateTime DueDate; + + bool isMaster = false; //Is this the original project? If so, we never replace it. + + bool IsSumbitted = false; //Is the student submitting this? If so, date-stamp it and lock it. + DateTime SaveDate; //The date this file was saved. + } +}