public async void Init(CPU _cpu)
        {
            viewModel.CPU = _cpu;
            await viewModel.GetBrand();

            viewModel.CPU.Brands = viewModel.Brandss.Single(x => x.Id == _cpu.BrandId);
        }
Example #2
0
        public async void Init(KeyBoard _keyboard)
        {
            viewModel.keyBoard = _keyboard;
            await viewModel.GetBrand();

            viewModel.keyBoard.Brands = viewModel.Brandss.Single(x => x.Id == _keyboard.BrandId);
        }
        public async void Init(HeadPhone _headphone)
        {
            viewModel.headPhone = _headphone;
            await viewModel.GetBrand();

            viewModel.headPhone.Brands = viewModel.Brandss.Single(x => x.Id == _headphone.BrandId);
        }
 public async void Init()
 {
     await viewModels.GetBrand();
 }