Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Documents;
  8. using System.Windows.Input;
  9. using System.Windows.Media;
  10. using System.Windows.Media.Animation;
  11. using System.Windows.Shapes;
  12. using Microsoft.Phone.Controls;
  13.  
  14. namespace Counter
  15. {
  16.     public partial class MainPage : PhoneApplicationPage
  17.     {
  18.         // Constructor
  19.         public MainPage()
  20.         {
  21.             InitializeComponent();
  22.         }
  23.    
  24.     int count = 0;
  25.        
  26.         private void button1_Click(object sender, RoutedEventArgs e)
  27.         {
  28.             int tally_display;
  29.             count++
  30.             tally_display = count;
  31.             lstOutput.Items.Add(tally_display);
  32.  
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement