public MainWindow()
        {
            InitializeComponent();

            casinoView.CasinoViewModel = CasinoViewModel.Load();
            casinoView.CasinoViewModel.Initialise();

            Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
        }
Beispiel #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            CasinoViewModel = new CasinoViewModel((ConnexionApi)e.Parameter);

            this.DataContext = CasinoViewModel;
        }