Initial person and schoolwork class

This commit is contained in:
Tim Young 2017-07-26 16:43:38 -05:00
parent a3dcf049e2
commit d899e21617
3 changed files with 80 additions and 0 deletions

View File

@ -149,6 +149,7 @@
</Compile> </Compile>
<Compile Include="Packet.cs" /> <Compile Include="Packet.cs" />
<Compile Include="PacketMessage.cs" /> <Compile Include="PacketMessage.cs" />
<Compile Include="PersonClass.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
@ -167,6 +168,7 @@
<Compile Include="RTFWindow.Designer.cs"> <Compile Include="RTFWindow.Designer.cs">
<DependentUpon>RTFWindow.cs</DependentUpon> <DependentUpon>RTFWindow.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="SchoolworkClass.cs" />
<Compile Include="VLANConfig.cs"> <Compile Include="VLANConfig.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>

View File

@ -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="";
/// <summary>
/// The username of the person. Will be used as a filename. Cannot be changed once it is set
/// </summary>
public string UserName { get { return _UserName; } }
/// <summary>
/// The full name of the person. Can have spaces and punctuation. Can change as one wants it changed.
/// </summary>
public string FullName = "";
List<string> Passwords;
/// <summary>
/// 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.
/// </summary>
string AltPassword = "";
/// <summary>
/// Used to determine if the user we are working with is the admin account.
/// </summary>
bool isAdmin = false;
/// <summary>
/// EverCompletedPuzzles is a list of puzzles that they have completed once.
/// </summary>
List<string> EverCompletedPuzzles = new List<string>();
List<SchoolworkClass> Projects = new List<SchoolworkClass>();
}
}

View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EduNetworkBuilder
{
/// <summary>
/// A class holding a project that needs to be done as either a test, quiz, or homework
/// </summary>
public class SchoolworkClass
{
Network theProject = null;
/// <summary>
/// The name of the project. Homework3, Quiz 4, etc.
/// </summary>
string Name = "";
/// <summary>
/// The short description of the project.
/// </summary>
string Description = "";
/// <summary>
/// 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.
/// </summary>
string Class = "";
/// <summary>
/// The date / time that the project is due.
/// </summary>
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.
}
}