示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.pokerView = ((pokerGame.Views.pokerView)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#2
0
        void ApplicationStartup(object sender, StartupEventArgs e)
        {
            MainWindow window = new MainWindow();

            Views.pokerView poker = new Views.pokerView();


            MainViewModel viewModel = new MainViewModel();

            window.DataContext = viewModel;

            window.ShowDialog();
        }