add auto module fetch on startup and finished module creation form for real now
This commit is contained in:
26
Server Dashboard/User/User.cs
Normal file
26
Server Dashboard/User/User.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
|
||||
namespace Server_Dashboard {
|
||||
|
||||
/// <summary>
|
||||
/// User class to store user informations
|
||||
/// </summary>
|
||||
internal class User {
|
||||
public int UID { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public DateTime RegistrationDate { get; set; }
|
||||
|
||||
public User(DataTable userData) {
|
||||
foreach (DataRow row in userData.Rows) {
|
||||
UID = (int)row[0];
|
||||
UserName = (string)row[1];
|
||||
Email = (string)row[2];
|
||||
RegistrationDate = (DateTime)row[3];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user