示例#1
0
 public DetailDataViewModel(IDOLView idol, IDOLDeviation deviation)
 {
     Record  = new DetailData(idol, deviation);
     Records = new List <DetailData> {
         Record
     };
     index                = 0;
     BuckButtonEnabled    = new ReactiveProperty <bool>(false);
     ForwardButtonEnabled = new ReactiveProperty <bool>(false);
 }
示例#2
0
 public void DataGridDoubleClick()
 {
     if (SelectedSim != null)
     {
         var selectedIdol = Model.IDOLList.FirstOrDefault(x => x.Name == SelectedSim.Name);
         var selectedDev  = Model.IDOLDeviations.FirstOrDefault(x => x.Name == SelectedSim.Name);
         Record = new DetailData(selectedIdol, selectedDev);
         index++;
         Records = Records.Take(index).Append(Record).ToList();
         RaisePropertyChanged(nameof(Record));
         BuckButtonEnabled.Value    = true;
         ForwardButtonEnabled.Value = false;
     }
 }