Ejemplo n.º 1
0
 private void InitModeItems()
 {
     ModeItems = new Caliburn.Micro.BindableCollection <LookupItem>();
     ModeItems.Add(new LookupItem()
     {
         Text = "Auto", Value = ModeOptions.Auto
     });
     ModeItems.Add(new LookupItem()
     {
         Text = "Manual", Value = ModeOptions.Manual
     });
     SelectedMode = OriginalValue.IsNullOrEmpty() ? ModeItems.Last() : ModeItems.First();
 }
Ejemplo n.º 2
0
 private void InitModeItems()
 {
     ModeItems = new Caliburn.Micro.BindableCollection<LookupItem>();
     ModeItems.Add(new LookupItem() { Text = "Auto", Value = ModeOptions.Auto });
     ModeItems.Add(new LookupItem() { Text = "Manual", Value = ModeOptions.Manual });
     SelectedMode = OriginalValue.IsNullOrEmpty() ? ModeItems.Last() : ModeItems.First();
 }