Winify – Diff between revs 12 and 13

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 12 Rev 13
Line 30... Line 30...
30 public NotificationForm() 30 public NotificationForm()
31 { 31 {
32 InitializeComponent(); 32 InitializeComponent();
33 } 33 }
Line 34... Line 34...
34   34  
35 public NotificationForm(int index, Image image, Stream sound, string title, string text, int milliseconds) : 35 public NotificationForm(int index, Image image, string title, string text, int milliseconds) :
36 this() 36 this()
37 { 37 {
38 Index = index; 38 Index = index;
Line 39... Line 39...
39 _image = image; 39 _image = image;
Line 40... Line 40...
40   40  
41 pictureBox1.InvokeIfRequired(pictureBox => { pictureBox.Image = image; }); 41 pictureBox1.InvokeIfRequired(pictureBox => { pictureBox.Image = image; });
Line 42... Line -...
42   -  
43 richTextBox2.InvokeIfRequired(richTextBox => { richTextBox.Text = title; }); -  
44 richTextBox1.InvokeIfRequired(richTextBox => { richTextBox.Text = text; }); -  
45   -  
46 using (var soundPlayer = new SoundPlayer(sound)) -  
47 { 42  
48 soundPlayer.Play(); 43 richTextBox2.InvokeIfRequired(richTextBox => { richTextBox.Text = title; });
49 } 44 richTextBox1.InvokeIfRequired(richTextBox => { richTextBox.Text = text; });
Line 50... Line 45...
50   45