[longomatch] Add event to notify about changes.



commit abe0c519c7551eda14fa7fc956f8e9bc840c8a12
Author: Julien Moutte <julien fluendo com>
Date:   Mon Mar 16 12:43:24 2015 +0100

    Add event to notify about changes.

 LongoMatch.GUI/Gui/Component/VideoFileInfo.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs b/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
index 021d50a..a2af25b 100644
--- a/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
+++ b/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
@@ -28,6 +28,8 @@ namespace LongoMatch.Gui.Component
        [System.ComponentModel.ToolboxItem(true)]
        public partial class VideoFileInfo : Gtk.Bin
        {
+               public event EventHandler Changed;
+
                MediaFileSet fileSet;
                MediaFile mediaFile;
                bool disableChanges;
@@ -105,6 +107,9 @@ namespace LongoMatch.Gui.Component
                                fileSet.Replace (mediaFile, file);
                                mediaFile = file;
                                UpdateMediaFile ();
+                               if (Changed != null) {
+                                       Changed (this, new EventArgs ());
+                               }
                        }
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]