Ejemplo n.º 1
0
 public void createWindowProfile(int activeObjectID)
 {
     if (windowProfile == null)
     {
         windowProfile = new WindowProfile(WindowProfileType.Team);
         windowProfile.setLocalization();
         if (activeObjectID == -1)
         {
             addToContext();
         }
         else
         {
             addToContext(activeObjectID);
         }
         windowProfile.Owner   = windowMain;
         windowProfile.Opacity = 0;
         windowProfile.Show();
         windowProfile.Closed += new EventHandler(windowProfile_Closed);
         globalFuncs.FadeInElement(windowProfile, 0.5, globalFuncs.windowFinalOpacity, true);
     }
     else
     {
         if (activeObjectID == -1)
         {
             addToContext();
         }
         else
         {
             addToContext(activeObjectID);
         }
     }
 }
Ejemplo n.º 2
0
        private void ButtonSignUp_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(viewModel.Region))
            {
                return;
            }
            if (string.IsNullOrEmpty(viewModel.SummonerName))
            {
                return;
            }

            if (controller.GetSummoner(viewModel.Region, viewModel.SummonerName))
            {
                WindowProfile profile = new WindowProfile();
                profile.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Not Found");
            }
        }
Ejemplo n.º 3
0
        private void ButtonSignUp_OnClick(object sender, RoutedEventArgs e)
        {
            var profile = new WindowProfile();

            profile.Show();
        }
Ejemplo n.º 4
0
        private void ButtonSignUp_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(viewModel.Region))
            {
                return;
            }
            if (string.IsNullOrEmpty(viewModel.SummonerName))
            {
                return;
            }
            if (string.IsNullOrEmpty(viewModel.GameMode))
            {
                return;
            }

            if (controller.GetSummoner(viewModel.SummonerName))
            {
                WindowProfile profile   = new WindowProfile();
                WindowTFT     windowTFT = new WindowTFT();

                switch (viewModel.GameMode.ToString())
                {
                case "League Of Legends":
                    profile.Show();
                    this.Close();
                    break;

                case "TeamFight Tatics":
                    windowTFT.Show();
                    this.Close();
                    break;

                case "Legends of Runeterra":
                    MessageBox.Show("Soon");
                    break;

                case "Valorant":
                    MessageBox.Show("Soon");
                    break;

                case "LoL: Wild Rift":
                    MessageBox.Show("Soon");
                    break;

                case "Project L":
                    MessageBox.Show("Soon");
                    break;

                case "Project F":
                    MessageBox.Show("Soon");
                    break;

                default:
                    //MessageBox.Show("Follow me on Twitter @ree_gms");
                    profile.Show();
                    this.Close();
                    break;
                }
            }
            else
            {
                MessageBox.Show("Not Found");
            }
        }