コード例 #1
0
        public BasicViewModel(MainWindowViewModel parent)
        {
            parent.DraftOpened += new MainWindowViewModel.NewDraftEventHandler(newComputerDraftUpdateProperties);

            cpu = parent.GetComputer.GetCpu;
            motherboard = parent.GetComputer.GetMotherboard;
        }
コード例 #2
0
 public ComputerModel()
 {
     cpu = new CpuModel();
     motherboard = new MotherboardModel();
     rams = new ObservableCollection<RamModel>();
     gpus = new ObservableCollection<GpuModel>();
     ssds = new ObservableCollection<SsdModel>();
     hdds = new ObservableCollection<HddModel>();
     discDrives = new ObservableCollection<DiscDriveModel>();
     psu = new PsuModel();
     caseModel = new CaseModel();
     os = new OsModel();
 }