public StatusPage(TRANSITON_FROM from) : base(from) { InitializeComponent(); var tgr = new TapGestureRecognizer(); tgr.Tapped += (s, e) => { Sound.OK(); MainPage.AddSubPage(new Chu2NameListPage(TRANSITON_FROM.BOTTOM)); }; MainChu2Name.GestureRecognizers.Add(tgr); SubChu2Name.GestureRecognizers.Add(tgr); }
protected override void Back(bool dontSave = false) { if (!dontSave) { _vm.SaveOther(Enemy); } if (Current.ContinuousWin >= 5) { MainPage.AddSubPage(new PrayPage(TRANSITON_FROM.RIGHT, "15"), () => { base.Back(false); }); Current.ClearContinusBattleRecord(); } else if (Current.ContinuousLose >= 5) { MainPage.AddSubPage(new PrayPage(TRANSITON_FROM.RIGHT, "14"), () => { base.Back(false); }); Current.ClearContinusBattleRecord(); } else { base.Back(dontSave); } }
void Handle_Comment(object sender, System.EventArgs e) { MainPage.AddSubPage(new CommentEdit(TRANSITON_FROM.BOTTOM)); }
void Handle_Revival(object sender, System.EventArgs e) { MainPage.AddSubPage(new ShowPassword(TRANSITON_FROM.BOTTOM)); }
void Handle_Chu2Name(object sender, System.EventArgs e) { MainPage.AddSubPage(new Chu2NameListPage(TRANSITON_FROM.BOTTOM)); }