Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Diagnostics;
  15. using System.Windows.Shapes;
  16.  
  17.  
  18. namespace WpfApp1
  19. {
  20.  
  21.     /// <summary>
  22.     /// Interaction logic for MainWindow.xaml
  23.     /// </summary>
  24.     public partial class MainWindow : Window
  25.     {
  26.  
  27.         private StopWatch sw;
  28.         public MainWindow()
  29.         {
  30.  
  31.             InitializeComponent();
  32.             sw = new StopWatch();
  33.            
  34.         }
  35.        
  36.         private void StartButton_Click(object sender, RoutedEventArgs e)
  37.         {
  38.             sw.Start();
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement