private void CreateTeam(object sender, MouseButtonEventArgs e)
        {
            CreateTeam ct = new CreateTeam();

            ct.Show();
            Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => ct.Activate()));
            ct.TeamCreation += Ct_TeamCreation;
        }
Beispiel #2
0
        private void UpdateEmblem(object sender, MouseButtonEventArgs e)
        {
            string[]   args = team_name.Text.Split('(');
            CreateTeam ct   = new CreateTeam(args[0].Split(' ')[0], args[1].Split(')')[0]);

            ct.Show();
            Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => ct.Activate()));

            ct.TeamCreation += UpdateEmblem;
        }