[longomatch] Update event desription when changed
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Update event desription when changed
- Date: Wed, 8 Oct 2014 00:12:58 +0000 (UTC)
commit 755731e30f8661349e8629482f170a1ce01e19b7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Oct 7 19:14:57 2014 +0200
Update event desription when changed
LongoMatch.GUI/Gui/Dialog/PlayEditor.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/PlayEditor.cs b/LongoMatch.GUI/Gui/Dialog/PlayEditor.cs
index 0d54927..58c5b34 100644
--- a/LongoMatch.GUI/Gui/Dialog/PlayEditor.cs
+++ b/LongoMatch.GUI/Gui/Dialog/PlayEditor.cs
@@ -40,6 +40,7 @@ namespace LongoMatch.Gui.Dialog
teamtagger.ShowSubstitutionButtons = false;
teamtagger.SelectionMode = MultiSelectionMode.Multiple;
teamtagger.PlayersSelectionChangedEvent += HandlePlayersSelectionChangedEvent;
+ nameentry.Changed += HandleChanged;
}
protected override void OnDestroyed ()
@@ -115,6 +116,13 @@ namespace LongoMatch.Gui.Dialog
}
+ void HandleChanged (object sender, EventArgs e)
+ {
+ if (play != null) {
+ play.Name = nameentry.Text;
+ }
+ }
+
void HandlePlayersSelectionChangedEvent (List<Player> players)
{
play.Players = players.ToList ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]