Exemplo n.º 1
0
        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());
 }
Exemplo n.º 3
0
 private void Local_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     ContentControlActions.setPopup(new LocalMultiplayerUserControl());
 }
Exemplo n.º 4
0
 private void Online_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     ContentControlActions.setPopup(new OnlineNamePromptUserControl());
 }
 private void popup(UserControl control)
 {
     ContentControlActions.setPopup(control);
 }