Winify – Diff between revs 11 and 12

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 11 Rev 12
Line 1... Line 1...
1 using System; 1 using System;
2 using System.Diagnostics; 2 using System.Diagnostics;
3 using System.Drawing; 3 using System.Drawing;
-   4 using System.IO;
-   5 using System.Media;
4 using System.Threading.Tasks; 6 using System.Threading.Tasks;
5 using System.Windows.Forms; 7 using System.Windows.Forms;
6 using Winify.Utilities; 8 using Winify.Utilities;
Line 7... Line 9...
7   9  
Line 28... Line 30...
28 public NotificationForm() 30 public NotificationForm()
29 { 31 {
30 InitializeComponent(); 32 InitializeComponent();
31 } 33 }
Line 32... Line 34...
32   34  
-   35 public NotificationForm(int index, Image image, Stream sound, string title, string text, int milliseconds) :
33 public NotificationForm(int i, Image image, string title, string text, int milliseconds) : this() 36 this()
34 { 37 {
35 Index = i; -  
36   38 Index = index;
Line 37... Line 39...
37 _image = image; 39 _image = image;
Line 38... Line 40...
38   40  
39 pictureBox1.InvokeIfRequired(pictureBox => { pictureBox.Image = image; }); 41 pictureBox1.InvokeIfRequired(pictureBox => { pictureBox.Image = image; });
Line -... Line 42...
-   42  
-   43 richTextBox2.InvokeIfRequired(richTextBox => { richTextBox.Text = title; });
-   44 richTextBox1.InvokeIfRequired(richTextBox => { richTextBox.Text = text; });
-   45  
-   46 using (var soundPlayer = new SoundPlayer(sound))
40   47 {
41 richTextBox2.InvokeIfRequired(richTextBox => { richTextBox.Text = title; }); 48 soundPlayer.Play();
42 richTextBox1.InvokeIfRequired(richTextBox => { richTextBox.Text = text; }); 49 }
Line 43... Line 50...
43   50