//Student information subpage public static string studentInformation(string id) { //Check if ID is formatted correctly return(string.Format( "<HTML><BODY>" + "<head> <title>Stranahan Detention System</title> </head>" + "Hello User. {0}<br>{1}<br>" + "{2}" + "</BODY></HTML>" , DateTime.Now , db.getName(id) , DatabaseMain.formatHTMLTable(db.getDetentionList(id)) )); }
public ServerRecorder() { InitializeComponent(); db = new DatabaseMain(); }
public MainDetention(long authnKey) { InitializeComponent(); database = new DatabaseMain(); }