PageRenderTime 50ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/NerdSharp.Net_Studio/NerdSharp_UberNet/Science/Comp_Sci/StudioComponents/Widgets/PBJClock.xaml.cs

https://bitbucket.org/pastageek/scide-cad-scilife
C# | 52 lines | 43 code | 6 blank | 3 comment | 0 complexity | 943eebd1abbc72bf17e61fabce2091a6 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. using F = System.Windows.Forms;
  15. using I = System.Drawing.Image;
  16. using T = NerdSharp.Net_Studio.NerdSharp_UberNet.Science.Math.Utils.Trigonometry;
  17. using M = System.Math;
  18. using Graph = NerdSharp.Net_Studio.NerdSharp_UberNet.Science.Math.TypeLibrary.Graphs_ChartsWidgets.Utils;
  19. using Tm = System.Windows.Forms.Timer;
  20. namespace NerdSharp.Net_Studio.NerdSharp_UberNet.Science.Comp_Sci.StudioComponents.Widgets
  21. {
  22. /// <summary>
  23. /// Interaction logic for PBJClock.xaml
  24. /// </summary>
  25. public partial class PBJClock : UserControl
  26. {
  27. public PBJClock()
  28. {
  29. InitializeComponent();
  30. }
  31. Tm virtualTimer = new Tm();
  32. private void bpjTimePicBx_LoadCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
  33. {
  34. virtualTimer.Tick += new EventHandler(virtualTimer_Tick);
  35. virtualTimer.Start();
  36. }
  37. void virtualTimer_Tick(object sender, EventArgs e)
  38. {
  39. timeLabel.Content = DateTime.Now.Hour + ":" + DateTime.Now.Minute + ":"
  40. + DateTime.Now.Second + "." + DateTime.Now.Millisecond;
  41. }
  42. private void clockBackgroundEllipse_Loaded(object sender, RoutedEventArgs e)
  43. {
  44. }
  45. }
  46. }