fork(1) download
  1. using System;
  2. using System.ComponentModel;
  3. using System.Collections.Generic;
  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.Threading;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Media.Effects;
  14. using System.Windows.Media.Animation;
  15. using System.Windows.Shapes;
  16.  
  17. namespace StreamLabsStreamerWpf
  18. {
  19. public partial class MainWindow : Window
  20. {
  21. public MainWindow()
  22. {
  23. this.InitializeComponent();
  24.  
  25. var sb = this.TryFindResource("Storyboard1");
  26. Storyboard _sb = sb as Storyboard;
  27. MessageBox.Show(_sb.Name);
  28. _sb.Stop();
  29. //Storyboard sb = (Storyboard)this.TryFindResource("Storyboard1");
  30. //sb.Seek(TimeSpan.Zero);
  31. }
  32.  
  33. void vb1_on_mouse_over(object sender, System.Windows.Input.MouseEventArgs e)
  34. {
  35. Brush brush = Brushes.Aqua;
  36. brush.Freeze();
  37.  
  38. this.vb2_eli.Stroke = brush;
  39. this.vb2_p1.Stroke = brush;
  40. this.vb2_p2.Stroke = brush;
  41. this.vb3_p3.Stroke = brush;
  42. }
  43.  
  44. void vb1_off_mouse_over(object sender, System.Windows.Input.MouseEventArgs e)
  45. {
  46. Brush brush = Brushes.White;
  47. brush.Freeze();
  48.  
  49. this.vb2_eli.Stroke = brush;
  50. this.vb2_p1.Stroke = brush;
  51. this.vb2_p2.Stroke = brush;
  52. this.vb3_p3.Stroke = brush;
  53. }
  54.  
  55. void vb1_click(object sender, System.Windows.Input.MouseButtonEventArgs e)
  56. {
  57. DispatcherTimer dt = new DispatcherTimer();
  58. dt.Interval = new TimeSpan(0, 0, 0, 0, 1000);
  59. dt.Tick += new System.EventHandler(dt_Tick);
  60. dt.Start();
  61. }
  62.  
  63. void dt_Tick(object sender, System.EventArgs e)
  64. {
  65. for(int i = 0; i < 20; i++)
  66. {
  67. this.vb2_blur_eff.Radius = (double)i;
  68. }
  69. }
  70. }
  71. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty