예제 #1
0
 void ShowNotice(object sender, MouseButtonEventArgs e)
 {
     loading.Show();
     this.Children.Remove(sender as WindowBase);
     loginTip = new LoginTip() { Z = 999999 };
     this.Children.Add(loginTip);
     Notice notice = new Notice() { Z = 7 };
     notice.Next += new MouseButtonEventHandler(ShowLogin);
     notice.GameStart += new MouseButtonEventHandler(GameStart);
     notice.ResourceReady += (s1, e1) => {
         loading.Hide();
         double startX = (Application.Current.Host.Content.ActualWidth - 464) / 2;
         double startY = (Application.Current.Host.Content.ActualHeight - 423) / 2;
         this.Children.Add(notice);
         notice.MoveTo(startX + 160, startX, startY - 120, startY, 3, new PowerEase() { EasingMode = EasingMode.EaseOut });
     };
     notice.Show();
 }