Пример #1
0
 private void Profile_Button(object sender, RoutedEventArgs e)
 {
     if (framekey == "Village")
     {
         Village.Profile_on();
     }
     else if (framekey == "Home")
     {
         Home.Profile_on();
     }
     else if (framekey == "Hospital")
     {
         Hospital.Profile_on();
     }
     else if (framekey == "IchirakuRamen")
     {
         IchirakuRamen.Profile_on();
     }
 }
Пример #2
0
 private void Profile_Close(object sender, RoutedEventArgs e)
 {
     if (framekey.Equals("Village"))
     {
         Village.Profile_off();
     }
     else if (framekey.Equals("Home"))
     {
         Home.Profile_off();
     }
     else if (framekey.Equals("Battleground"))
     {
         Battleground.Profile_Off();
     }
     else if (framekey.Equals("Hospital"))
     {
         Hospital.Profile_Off();
     }
     else if (framekey.Equals("IchirakuRamen"))
     {
         IchirakuRamen.Profile_Off();
     }
 }