Click here to Skip to main content
Click here to Skip to main content
Go to top

A Restaurant and Waiter helper app in WPF and Windows Mobile

, 22 Jan 2012
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

 
GeneralMy vote of 1 PinmemberMember 1088304817-Jun-14 3:41 
GeneralThanks PinmemberMember 102322978-May-14 20:07 
QuestionPlease help cant connect Emulator to Restaurant app PinmemberRahat.p17-Feb-14 4:03 
Questionthank you Pinmembertejasdubal1-Dec-13 16:51 
Questionhelp with connection string and codes PinmemberMember 1005198914-May-13 22:10 
QuestionHow to setup connection string using frmConfiguration PinmemberDigi Baba27-Apr-13 4:19 
AnswerRe: How to setup connection string using frmConfiguration PinmemberMember 85537401-Jul-13 21:10 
Questionreceipt printer Pinmembermahmoudadel2-Mar-13 8:20 
QuestionWhat are the user names and passwords of this system PinmemberNuwan Thilina19-Feb-13 23:00 
Questionthanx Pinmembermahmoudadel12-Feb-13 1:28 
GeneralMy vote of 5 Pinmemberyeng thao2-Feb-13 6:27 
GeneralMy vote of 5 PinmemberWahab Hussain7-Dec-12 6:57 
Well done Ali, keep it up.
GeneralMy vote of 5 Pinmemberjawed.ace8-Nov-12 3:15 
GeneralMy vote of 5 PinmemberSameerNA14-Oct-12 3:49 
QuestionWaiter app in VS2010 Pinmembervolley198914-Sep-12 10:07 
AnswerRe: Waiter app in VS2010 PinmemberAli Daneshmandi15-Sep-12 5:42 
GeneralRe: Waiter app in VS2010 Pinmembervolley198917-Sep-12 11:43 
AnswerRe: Waiter app in VS2010 Pinmembervolley198920-Sep-12 6:00 
GeneralRe: Waiter app in VS2010 PinmemberAli Daneshmandi20-Sep-12 10:44 
GeneralRe: Waiter app in VS2010 Pinmembervolley198920-Sep-12 22:59 
QuestionPassword PinmemberJoan Kay21-Aug-12 13:29 
AnswerRe: Password PinmemberAli Daneshmandi21-Aug-12 21:00 
GeneralRe: Password PinmemberJoan Kay3-Jul-13 20:59 
QuestionExcellent PinmemberRugbyLeague3-Aug-12 7:23 
GeneralMy vote of 5 PinmemberChristian Amado3-Aug-12 7:16 

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 | Mobile
Web01 | 2.8.140916.1 | Last Updated 23 Jan 2012
Article Copyright 2012 by Ali Daneshmandi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid