Beispiel #1
0
 public Main()
 {
     InitializeComponent();
     this.client = new BattleshipServiceClient(new InstanceContext(this));
     roomsPage = new RoomsPage(this);
     SetContent(roomsPage);
     loginPage = new LoginPage(this);
     ((RoomsPage)this.Content).grid.Children.Add(loginPage);
     loginPage.SetValue(Grid.RowSpanProperty, 4);
     loginPage.SetValue(Grid.ColumnSpanProperty, 2);
     this.Closing += Dispatcher_ShutdownStarted;
     chat = "";
 }
Beispiel #2
0
 //Begin code
 public Main()
 {
     InitializeComponent();
     this.client = new BattleshipServiceClient(new InstanceContext(this));
     roomsPage   = new RoomsPage(this);
     SetContent(roomsPage);
     loginPage = new LoginPage(this);
     ((RoomsPage)this.Content).grid.Children.Add(loginPage);
     loginPage.SetValue(Grid.RowSpanProperty, 4);
     loginPage.SetValue(Grid.ColumnSpanProperty, 2);
     this.Closing += Dispatcher_ShutdownStarted;
     chat          = "";
 }