Esempio n. 1
0
 public TaskDetailViewModel(DisplayTask task)
 {
     Task           = task;
     ExplorerHeader = new ExplorerHeader()
     {
         CloseButtonEnabled = true,
         Header             = Task.Name
     };
 }
Esempio n. 2
0
 public TagDetailViewModel(Tag tag, ObservableCollection <TagType> tagTypes)
 {
     Tag               = tag;
     Name              = tag.Name;
     Detail            = tag.Detail;
     Editable          = false;
     TagTypes          = tagTypes;
     SelectedTypeIndex = TagTypes.IndexOf(TagTypes.Single(it => it.ObjectId == tag.TypeId));
     DisplayAliases();
     ExplorerHeader = new ExplorerHeader()
     {
         CloseButtonEnabled = true,
         Header             = Name
     };
 }