diff options
| -rw-r--r-- | Software/DB/PPC/Tango.mdf | bin | 75497472 -> 75497472 bytes | |||
| -rw-r--r-- | Software/DB/PPC/Tango_log.ldf | bin | 53673984 -> 53673984 bytes | |||
| -rw-r--r-- | Software/DB/Tango.mdf | bin | 75497472 -> 75497472 bytes | |||
| -rw-r--r-- | Software/DB/Tango_log.ldf | bin | 22675456 -> 22675456 bytes | |||
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/EmulateMachineEventDialogViewVM.cs | 28 |
5 files changed, 27 insertions, 1 deletions
diff --git a/Software/DB/PPC/Tango.mdf b/Software/DB/PPC/Tango.mdf Binary files differindex c7a9256ab..c9223a746 100644 --- a/Software/DB/PPC/Tango.mdf +++ b/Software/DB/PPC/Tango.mdf diff --git a/Software/DB/PPC/Tango_log.ldf b/Software/DB/PPC/Tango_log.ldf Binary files differindex 5fb47f027..ffbadbebe 100644 --- a/Software/DB/PPC/Tango_log.ldf +++ b/Software/DB/PPC/Tango_log.ldf diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf Binary files differindex af62a3cbc..4a0d25eed 100644 --- a/Software/DB/Tango.mdf +++ b/Software/DB/Tango.mdf diff --git a/Software/DB/Tango_log.ldf b/Software/DB/Tango_log.ldf Binary files differindex 506d4c293..cf3557ccb 100644 --- a/Software/DB/Tango_log.ldf +++ b/Software/DB/Tango_log.ldf diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/EmulateMachineEventDialogViewVM.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/EmulateMachineEventDialogViewVM.cs index 0026a47ff..bb2209101 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/EmulateMachineEventDialogViewVM.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/EmulateMachineEventDialogViewVM.cs @@ -10,6 +10,9 @@ namespace Tango.FSE.UI.Dialogs { public class EmulateMachineEventDialogViewVM : FSEDialogViewVM { + private static EmulateMachineEventDialogViewVM _lastInstance; + + public List<EventType> EventTypes { get; set; } private EventType _selectedEventType; @@ -26,7 +29,12 @@ namespace Tango.FSE.UI.Dialogs set { _durationSeconds = value; RaisePropertyChangedAuto(); } } - public String Message { get; set; } + private String _message; + public String Message + { + get { return _message; } + set { _message = value; RaisePropertyChangedAuto(); } + } public EmulateMachineEventDialogViewVM() { @@ -38,5 +46,23 @@ namespace Tango.FSE.UI.Dialogs { return base.CanOK() && SelectedEventType != null && DurationSeconds > 0; } + + protected override void Accept() + { + _lastInstance = this; + base.Accept(); + } + + public override void OnShow() + { + base.OnShow(); + + if (_lastInstance != null) + { + SelectedEventType = EventTypes.FirstOrDefault(x => x.Code == _lastInstance.SelectedEventType.Code); + DurationSeconds = _lastInstance.DurationSeconds; + Message = _lastInstance.Message; + } + } } } |
