3 4 5 6 7 8 9 10 11 12 private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object.

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Recursion.
Charles Petzold Application Lifecycle and State Management.
Class Scope class Student { private: string id; string firstName, lastName; float gpa; public: void Read() { cin >> id >> firstName >> lastName >> gpa;
Craps. /* * file : Craps.java * file : Craps.java * author: george j. grevera, ph.d. * author: george j. grevera, ph.d. * desc. : program to simulate.
Lecture # 21 Chapter 6 Uptill 6.4. Type System A type system is a collection of rules for assigning type expressions to the various parts of the program.
runningdeactivateddormantactivated Phone resources detached Threads & timers suspended Fast App Resume Save State! State preserved! e.IsApplicationInstancePreserved.
int getThird(int *arr){ return arr[3]; } In all these examples “n” is the size of the input e.g. length of arr O(1) And what two things are wrong with.
True/False. False True Subject May Go Here True / False ? Type correct answer here. Type incorrect answer here.
November Ron McFadyen1 Façade simplifies access to a related set of objects by providing one object that all objects outside the set use to.
Iterator Pattern Dr. Neal CIS 480. Iterator An iterator pattern can be used when one class is a collection of things and would like to provide a standardized.
30 April 2014 Building Apps for Windows Phone 8.1 Jump Start WinRT Apps & Silverlight.
Crossword Puzzle Solver Michael Keefe. Solver structure.
CS140: Intro to CS An Overview of Programming in C by Erin Chambers.
3 4 private void saveButton_Click(object sender, RoutedEventArgs e) { saveText("jot.txt", jotTextBox.Text); }
private void mailButton_Click(object sender, RoutedEventArgs e) { sendMail("From JotPad", jotTextBox.Text); }
[ServiceContract] public interface IJokeOfTheDayService { [OperationContract] string GetJoke(int jokeStrength); }
A brief introduction to javadoc and doxygen. What’s in a program file? 1. Comments 2. Code.
Objects and Classes Continued Engineering 1D04, Teaching Session 10.
Class Constructors class Student { private: string id, firstName, lastName; float gpa; public: Student() Student(string sID) Student(string first, string.
3 4 5 resultTextBlock.Text = result.ToString();
Vaughan Knight Vaughan Knight Bit
3 private void equalsButton_Click( object sender, RoutedEventArgs e) { calculateResult(); }
LINKED LISTS Midwestern State University CMPS 1053 Dr. Ranette Halverson 1.
WebClient client; 10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted.
Objects and Classes Engineering 1D04, Teaching Session 9.
A: A: double “4” A: “34” 4.
Const Member Functions Which are read-only? //fraction.h... class Fraction { public: void readin(); void print();
CPSC 481 – Week #7 Sowmya Somanath
Integral Users will interact with your app on a big screen with keyboard and mouse.
Class Method Read class Student { private: string id; string firstName, lastName; float gpa; public: // Will the method change any data members? // Yes!
REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection.
private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute));
1 Working with Controls at Run Time. 2 Objectives You will be able to Add controls to a Windows form at run time. Modify controls at run time.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
Exercises on Polymorphism and Operator Overloading TCP1201: 8.
CS 1430: Programming in C++ 1. File Input in VS Project Properties Debugging Command Arguments quiz8-1.out We want to know how to do it ourselves, right?
Arrays and Sorting. Process Open a file that contains integers, one per line. Read each line, convert to short and store each into an array Sort the array.
FLOW OF OPERATIONS. Choose output size Choose output format Correct data types Add/Remove columns Change data types Set bindings Use functions Adjust.
1 Using an XML Parser. 2 Objective You will be able to use a publically available open source parser to convert an XML file into an internal data structure.
Test1 Here some text. Text 2 More text.
GCSE COMPUTER SCIENCE Practical Programming using Python
A CLASS CONSISTS OF VARIABLES,
Template Classes.
the first card insert text here.
Introduction to javadoc
CS 1430: Programming in C++.
[0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
Review Operation Bingo
בניית מחלקות.
null, true, and false are also reserved.
Code for WPF.
Example: Checking for correct UK Postcode
בניית מחלקות.
Gathering User Input Event Handling Create Dynamic controls
[type text here] [type text here] [type text here] [type text here]
Your text here Your text here Your text here Your text here Your text here Pooky.Pandas.
CS 3870 Web User Control Events.
Logical Operations In Matlab.
Standard Input/Output Stream
Your text here Your text here Your text here Your text here
Conditional Logic Presentation Name Course Name
Web Service.
Part 3 Saving (without the Save button)
[type text here] [type text here] [type text here] [type text here]
Introduction to javadoc
YOUR text YOUR text YOUR text YOUR text
MENTAL MATH Here We Go….
Poker2.jpg Poker14.jpg int num1, num2;
Conditionals.
Presentation transcript:

3

4

5

6

7

8

9

10

11

12

private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object sender, ActivatedEventArgs e) { } private void Application_Deactivated(object sender, DeactivatedEventArgs e) { } private void Application_Closing(object sender, ClosingEventArgs e) { }

private void Application_Closing(object sender, ClosingEventArgs e) { MainPage jotPadPage = (MainPage)RootFrame.Content; jotPadPage.Save(); }

public void Save() { saveText("jot.txt", jotTextBox.Text); }

16

private void Application_Deactivated(object sender, DeactivatedEventArgs e) { MainPage jotPadPage = (MainPage)RootFrame.Content; jotPadPage.SaveState(); }

private void SaveStateText (string filename, string text) { IDictionary stateStore = PhoneApplicationService.Current.State; stateStore.Remove(filename); stateStore.Add(filename,text); }

private bool loadStateText(string filename, out string result) { IDictionary stateStore = PhoneApplicationService.Current.State; result = ""; if (!stateStore.ContainsKey(filename)) return false; result = (string)stateStore[filename]; return true; }

21

22

23

public void Load() { string text; if (loadStateText("jot.txt", out text)) { jotTextBox.Text = text; return; } if (loadText("jot.txt", out text)) { jotTextBox.Text = text; } else { jotTextBox.Text = "Type your jottings here...."; }

private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { Load(); }

26

27