C
C#3mo ago
kit666

[WinForms] Need ideas/help where to start..

Hello im a first year CS student and its our 4th week of C# I've given a project in C# to do a small internet cafe management-like project Basically it should be done on WinForms. The features is simple. The Server PC will have a dashboard form. The Client PC will have a login/logout form Server PC: -Sees how many users are logged in (My teacher says there should be at least 2 Client PCs) -Sees the duration of their session -Can create Account for log in Client PC: -Login form -Logout form -Session timer How should I implement this? What topics in C# should I look into? We never had a network class so i admit this is a bit out of scope of what i know rn..
4 Replies
Schreck
Schreck3mo ago
Without going too much into detail for authentication and stuff, I would recommend a little database (sqlite, even simple json files should do it) holding a table for users and another for sessions. The sessions should at least have a session id, user id or user name, start timestamp and stopp timestamp. If the client logs in, a new entry is being created. If the user logs out, the information is being updated. For the Server dashboard, a view can be created, containing the informations mentioned in the task. How many time you have for solving this task / project? At first sight, it sounds quite hard for you.
Jimmacle
Jimmacle3mo ago
i don't think a database is necessary based on the requirements depends on what the details of the architecture are, or if it's as open ended as the post suggests
kit666
kit666OP3mo ago
I have 3 weeks to do this application. Im thinking of WF on Server PC (dashboard form) and WF on Client PC (login/logout form). Server starts application for the dashboard then the Client would connect to it remotely through wifi prrferrably..
Jimmacle
Jimmacle3mo ago
that's probably the simplest way to do things, just have the clients connect directly to the server app you can look at TcpClient/TcpListener for actually connecting and sending data
Want results from more Discord servers?
Add your server