Click here to Skip to main content
15,908,166 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello everyone

I have created a WPF project (with C# coding). When I run my application, on my main screen I have a button called (ClockIn/ClockOut). What I want to achieve with this is to Clock In to my system project application and remain Clocked In to the system until the user Clocks Out from the system project application. I know that for this I have to create a database as well, but since I'm new to WPF and C# I don't know how to resolve this problem.

Could someone please help me resolve this problem...

kind regards

lapeci
Posted

1 solution

You have a large question here. I would recommend you start with some basic tutorials on WPF and C# and go from there. How to access a database and how to build a database are both topics that can be easily found on the web and they are too broad to answer specifically.

To get started, you can start with these sites:

http://www.wpftutorial.net/[^]
Beginners guide to accessing SQL Server through C#[^]
http://databases.about.com/od/sql/a/tables.htm[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Jun-12 0:22am    
Tim, I really don't understand what large question did you see here, as OP's explanation is tautological "Clock in means start Clocking and Clock out means stop clocking". To me, this is nothing but an incomplete question.
--SA
Tim Corey 11-Jun-12 6:28am    
The way the OP stated that they knew they had to create a database but they are new to WPF and didn't know how to resolve the problem, it sounds like they have to figure out connecting to a database, designing a database, and finally writing to a database. The actual question, past all of these technical issues, is basically answered by the OP. They need to write a clock-in message and then write another that clocks them out. That would be simple if the plumbing wasn't an issue.
LAPEC 11-Jun-12 6:42am    
Hi Tim

Thanks for replying to my question...

My application is restaurant based (point of sale system). The ClockIn and ClockOut is for the user (employee) to clock-in to the system when he/she starts the shift working at the work place, and clock-out when he/she finishes the shift at the work place...

I hope my question is understandable, and please feel free to ask more about my question if its not clear to you...

Thanks in advance

kind regards

lapeci

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900