Click here to Skip to main content
11,479,096 members (63,434 online)
Click here to Skip to main content

A Restaurant and Waiter helper app in WPF and Windows Mobile

, 22 Jan 2012 Ms-PL 116.9K 62.9K 166
Rate this:
Please Sign up or sign in to vote.
A Restaurant and Waiter helper app in WPF and Windows Mobile
Pro

Introduction

In 2009 when I was a student in Southern Cross University of Australia (SCU), I was supposed to do a project as my final project. It was quite a while that I was heard about Windows Presentation Foundation (WPF) and I was in love with that. So I thought it would be great if I create a WPF application as my final project. So I decided to write an application to learn WPF in action and this project came to existence. After that, when I graduated from SCU I decided to make a video demo of the app in action and put that on the Youtube.

<OBJECT type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" WIDTH="640" HEIGHT="360" data="http://www.youtube.com/v/CVlSj0yr3rg?version=3&feature=player_detailpage"></OBJECT>

After putting this video on Youtube, I received many feedback and requests from students in academia to share the code with them. They were interested in how I had created this app using WPF technology. I hadn't decided to share the code in public mostly because it was my first try on WPF and I knew that it is not well developed to be considered a guide for new learners. In fact, I was a newbie in WPF and I didn't want to put others in a wrong direction. Therefore, when I was receiving such requests I was forwarding them to the open source Family.Show application from Verrtigo and Pro WPF in C# book by Matthew MacDonald that were among my best resources in learning WPF.

It's almost 3 years passed now from when I did this project but I still receive such requests and feedback from academia students. To be honest, I am tired of replying such insistent student who ask for the code even though I reveal this fact with them. Therefore I've decided to share the source code of the app with everyone who is interested by the subject as is.

But I highly emphasize that this is a project that was done by a WPF newbie, hence you should consider that there might be better ways to do the things that were done in this application in terms of coding, designing and etc. In fact, If I'd wanted to create this application now, I would do that differently and in a more standard way.

Anyway, here is the whole thing you need to know about this project.


Background

This project consists of two separate parts; Restaurant app and Waiter app. The Waiter app is a Pocket PC based application based on Windows Mobile 5 that helps waiters to place customers’ orders besides getting informed of orders’ states to serve them to customers. This application works in an online environment in a WiFi network.

On the other side, the Restaurant app is a PC application based on WPF which is used in three different stations by three different users; Manager, Kitchen organizer and Cashier. The Manager, defines users of the applications and assigns different permissions to them. Moreover, he/she can defines initial data of the application and also can get different reports by the app. Kitchen organizer uses the Restaurant application to be informed of new or edited orders to prepare them besides, updating orders state and also availability of orders’ items. And finally the Cashier, who will use this application for printing receipt and doing check out processes.

Important notice: I definitely know that the processes inside Restaurants might be different in real situations. Better say, the processes in this application are just imaginary.

Using the code

After you download the files, you should attach the database files in Microsoft SQL Server 2005 or higher versions. Then you need to change the connection strings used in both Restaurant and Waiter apps accordingly.

For changing the connection string in the Restaurant app, open Settings.settings file in visual studio and change ConnectionStr property to point to your SQL Server instance.

Setting the connection string for the Waiter app will be done through frmConfiguration form.

That's it! Hope it helps.

Resources

Keep in touch!

If you were interested to know what am I doing now? Please feel free to visit me at http://daneshmandi.com


License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

Share

About the Author

Ali Daneshmandi
Software Developer DAN
Canada Canada
XAML Designer & Developer | Passionate about UX | Founder of www.PortraitPad.com

Follow me on Twitter at: @daneshmandi
My website: www.daneshmandi.com
Follow on   Twitter

Comments and Discussions

 
QuestionPrinting Orders Pin
Hernan Olivieri20-May-15 10:58
memberHernan Olivieri20-May-15 10:58 
GeneralMy vote of 5 Pin
TrushnaK19-Dec-14 20:31
memberTrushnaK19-Dec-14 20:31 
QuestionDatabase Not Connected Pin
Member 1042243915-Nov-14 5:46
memberMember 1042243915-Nov-14 5:46 
QuestionCan't Login Pin
Member 1034969823-Oct-14 8:59
professionalMember 1034969823-Oct-14 8:59 
GeneralMy vote of 1 Pin
Member 1088304817-Jun-14 4:41
memberMember 1088304817-Jun-14 4:41 
GeneralThanks Pin
Member 102322978-May-14 21:07
memberMember 102322978-May-14 21:07 
QuestionPlease help cant connect Emulator to Restaurant app Pin
Rahat.p17-Feb-14 5:03
memberRahat.p17-Feb-14 5:03 
Questionthank you Pin
tejasdubal1-Dec-13 17:51
membertejasdubal1-Dec-13 17:51 
Questionhelp with connection string and codes Pin
Member 1005198914-May-13 23:10
memberMember 1005198914-May-13 23:10 
QuestionHow to setup connection string using frmConfiguration Pin
Digi Baba27-Apr-13 5:19
memberDigi Baba27-Apr-13 5:19 
AnswerRe: How to setup connection string using frmConfiguration Pin
Member 85537401-Jul-13 22:10
memberMember 85537401-Jul-13 22:10 
Questionreceipt printer Pin
mahmoudadel2-Mar-13 9:20
membermahmoudadel2-Mar-13 9:20 
QuestionWhat are the user names and passwords of this system Pin
Nuwan Thilina20-Feb-13 0:00
memberNuwan Thilina20-Feb-13 0:00 
Questionthanx Pin
mahmoudadel12-Feb-13 2:28
membermahmoudadel12-Feb-13 2:28 
GeneralMy vote of 5 Pin
yeng thao2-Feb-13 7:27
memberyeng thao2-Feb-13 7:27 
GeneralMy vote of 5 Pin
Wahab Hussain7-Dec-12 7:57
memberWahab Hussain7-Dec-12 7:57 
GeneralMy vote of 5 Pin
jawed.ace8-Nov-12 4:15
memberjawed.ace8-Nov-12 4:15 
GeneralMy vote of 5 Pin
SameerNA14-Oct-12 4:49
memberSameerNA14-Oct-12 4:49 
QuestionWaiter app in VS2010 Pin
volley198914-Sep-12 11:07
membervolley198914-Sep-12 11:07 
AnswerRe: Waiter app in VS2010 Pin
Ali Daneshmandi15-Sep-12 6:42
memberAli Daneshmandi15-Sep-12 6:42 
GeneralRe: Waiter app in VS2010 Pin
volley198917-Sep-12 12:43
membervolley198917-Sep-12 12:43 
AnswerRe: Waiter app in VS2010 Pin
volley198920-Sep-12 7:00
membervolley198920-Sep-12 7:00 
GeneralRe: Waiter app in VS2010 Pin
Ali Daneshmandi20-Sep-12 11:44
memberAli Daneshmandi20-Sep-12 11:44 
In Windows 7 you can use Microsoft Device Center.
Ali Daneshmandi

GeneralRe: Waiter app in VS2010 Pin
volley198920-Sep-12 23:59
membervolley198920-Sep-12 23:59 
QuestionPassword Pin
Joan Kay21-Aug-12 14:29
memberJoan Kay21-Aug-12 14:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 23 Jan 2012
Article Copyright 2012 by Ali Daneshmandi
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid