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