Esempio n. 1
0
 /// <summary>
 /// 按钮点击事件,给panel重设置page
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StartClick(object sender, RoutedEventArgs e)
 {
     MainWindow.PlayMusic("../../res/bgm/0层声音.MP3");
     MainWindow.GlobalViewbox.Stretch = Stretch.Fill;
     MainWindow.GlobalLeft.Navigate(State.GetInstance());
     MainWindow.GlobalRight.Navigate(FloorFactory.GetInstance());
 }
Esempio n. 2
0
 /// <summary>
 /// 单例模式
 /// </summary>
 /// <returns></returns>
 public static FloorFactory GetInstance()
 {
     if (instance == null)
     {
         instance = new FloorFactory();
     }
     return(instance);
 }