private void CheckNamePrompt() { // todo strip spaces for check // todo Disable button if text is empty if (NamePromptText.Text == "") { return; } Networkmanager.ClientName = NamePromptText.Text; ContentControlActions.setPopup(new OnlineLobbyUserControl()); }
private void Help_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ContentControlActions.setPopup(new HelpPopUpUserControl()); }
private void Local_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ContentControlActions.setPopup(new LocalMultiplayerUserControl()); }
private void Online_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ContentControlActions.setPopup(new OnlineNamePromptUserControl()); }
private void popup(UserControl control) { ContentControlActions.setPopup(control); }