コード例 #1
0
 public Settings(MainPage parent)
 {
     this.InitializeComponent();
     this.parent = parent;
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
     sldMusic.Value = parent.game.music;
     if (parent.game.hardDifficulty == true)
     {
         hard.IsChecked = true;
     }
     else
     {
         easy.IsChecked = true;
     }
     if (parent.game.landscape.shader_option == 0)
     {
         basic.IsChecked = true;
     }
     else
     {
         custom.IsChecked = true;
     }
 }
コード例 #2
0
 public BasicPage1()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
コード例 #3
0
 public Instructions(MainPage parent)
 {
     this.InitializeComponent();
     this.parent = parent;
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }