public void Setup() { _viewModel = new PairViewModel(); _viewModel.PairsCollection = new ObservableCollection <Pair>() { new Pair("Plane", "Airbus"), new Pair("Plane", "Jet120"), new Pair("Plane", "G598"), new Pair("Plane", "CTSF"), new Pair("Moto", "Harlley"), new Pair("Moto", "R1"), new Pair("Moto", "Cross"), new Pair("Moto", "Quad") }; }
public MainWindow() { InitializeComponent(); _viewModel = new PairViewModel(); DataContext = _viewModel; }
public PairView(PairViewModel pairViewModel) { InitializeComponent(); BindingContext = pairViewModel; }
public Form1() { InitializeComponent(); pairViewModel = FactorySingleton.Factory.Get <PairViewModel>(); }