Intro to windows app

955 views

Published on

Event #3 for DevMix Team

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
955
On SlideShare
0
From Embeds
0
Number of Embeds
59
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Intro to windows app

  1. 1. Let’s Start<br />Intro To Windows Apps Using<br />C#<br />Develop Simple Calculator<br />
  2. 2. Out Lines<br />Purpose of this session<br />Dos vs Windows<br />Windows applications concepts<br />Example <br />(make calculator using win forms app)<br />
  3. 3. Purpose<br />What’s this session for ?<br />For making a calculator using C#<br />False<br />False !!, for What ?!!<br />I will tell you<br />This session for begin using C# to develop our first windows application<br />Purpose<br />Not to make a calculator (Simply it’s nothing)<br />To learn how to make windows apps (I got it)<br />
  4. 4. Dos vs Win<br />Dos<br />Very poor operating system<br />Every thing is text<br />Based on commands<br />Windows<br />The most popular operating system<br />More friendly to user<br />Based on graphical user interfaces (GUIs)<br />Absolutely there is other differences but this what we need right now<br />
  5. 5. Windows Applications<br />Windows apps<br />It’s applications used for windows OS<br />Graphical user interface apps<br />Allows a user to interact visually <br />Buttons , text-boxes , labels , …<br />Windows forms<br />Used to create the GUIs<br />
  6. 6. Forms<br />Graphical element that appears on your computer's desktopas<br />Dialogs<br />SDI Window (single document interface)<br />MDI Window (multiple document interface)<br />The place where we can but GUI controls<br />
  7. 7. Controls<br />Windows app as said before consist of <br />Buttons , labels , text-boxes , … etc.<br />These is called GUI controls<br />GUI controls are objects that can <br />Display information on the screen<br />Enable users to interact with an app via mouse, keyboard<br />Some other form of input as voice commands<br />
  8. 8. Common Controls<br />Each control has its own Properties & Events<br />Property as: Background color Event as: Click<br />
  9. 9. Events<br />Event is “Something occur”<br />When we click the mouse this is an event<br />When we type on the keyboard this is an event<br />GUIs are event driven which mean<br />Each event, must have its own handler<br />Handler<br />Method perform a task in response to events<br />
  10. 10. Let’s Start<br />We will develop a calculator<br />
  11. 11. What For ? <br />What type of calculators user need? for what ?<br />Simple, Basic calculations<br />Advanced, Complex calculations<br />Custom, Custom type of calculations<br />Mix All of them<br />Simply if you made one you can make all<br />Because its only “idea”<br />
  12. 12. Let’s Program<br />We will make the simple one<br />Simply because there isn’t remaining time<br />It’s the root of all others<br />We will use Visual Studio As IDE<br />Simply because it’s the best<br />We will use C# as PL<br />Simply because it’s the Strongest<br />Now Let’s Program<br />Okay let’s do it<br />
  13. 13. Let’s Think & Imagine<br />Need to get input from the user<br />Can use some buttons to read numbers & operations<br />Can use text-box to show operands, results<br />Convert the input in text box to numbers<br />Can use parse( ) method<br />Store this input in variables for making calculations<br />double fNum , sNum ; <br />Make operations on the values stored in variables<br />double result = fNum ( Operation [+,-,*,/] ) sNum ;<br />Show the final result to user<br />Show it in the text-box<br />
  14. 14. Let’s Code<br />We should now start to code<br />At this stage we will convert our thinking & imagination into real world application<br />This could be done by writing some steps based on our thinking & imagination <br />
  15. 15. Summary<br />Dos Vs Win<br />Windows Applications<br />Forms (Windows Forms)<br />GUI Controls<br />Events<br />Example on Simple Calculator<br />
  16. 16. Questions ?<br />

×