Esempio n. 1
0
 private void InitComputerNames(List <string> computerNames)
 {
     ComputerNames = new Caliburn.Micro.BindableCollection <string>();
     if (computerNames != null)
     {
         ComputerNames.AddRange(computerNames);
     }
     //ComputerName = ComputerNames.FirstOrDefault();
 }
Esempio n. 2
0
 private void CreateLookups()
 {
     Lookups = new Caliburn.Micro.BindableCollection <LookupItem>();
     if (Editor == EditorOptions.TrueFalse)
     {
         Lookups.Add(new LookupItem()
         {
             Text = "True", Value = "True"
         });
         Lookups.Add(new LookupItem()
         {
             Text = "False", Value = "False"
         });
     }
     else if (Editor == EditorOptions.Lookup)
     {
         Lookups.AddRange(Parameter.Lookups.Select(item => new LookupItem()
         {
             Text = item.Text, Value = item.Value
         }));
     }
 }
Esempio n. 3
0
 private void InitComputerNames(List<string> computerNames)
 {
     ComputerNames = new Caliburn.Micro.BindableCollection<string>();
     if (computerNames != null)
         ComputerNames.AddRange(computerNames);
     //ComputerName = ComputerNames.FirstOrDefault();
 }
Esempio n. 4
0
 private void CreateLookups()
 {
     Lookups = new Caliburn.Micro.BindableCollection<LookupItem>();
     if (Editor == EditorOptions.TrueFalse)
     {
         Lookups.Add(new LookupItem() {Text = "True", Value = "True"});
         Lookups.Add(new LookupItem() {Text = "False", Value = "False" });
     }
     else if (Editor == EditorOptions.Lookup)
     {
         Lookups.AddRange(Parameter.Lookups.Select(item => new LookupItem() { Text = item.Text, Value = item.Value}));
     }
 }