示例#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 = "";
 }
示例#2
0
 public void LogIn(string GUID)
 {
     this._GUID = GUID;
     ((RoomsPage)this.Content).grid.Children.Remove(loginPage);
     loginPage = null;
     roomsPage.SetUsername(_name);
 }