Пример #1
0
        //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))
                       ));
        }
Пример #2
0
        public ServerRecorder()
        {
            InitializeComponent();

            db = new DatabaseMain();
        }
Пример #3
0
        public MainDetention(long authnKey)
        {
            InitializeComponent();

            database = new DatabaseMain();
        }