Example #1
0
 private void ForwardButton_Click(object sender, RoutedEventArgs e)
 {
     if (MyFame.CanGoForward)
     {
         MyFame.GoForward();
     }
 }
Example #2
0
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     if (MyFame.CanGoBack)
     {
         MyFame.GoBack();
     }
 }
Example #3
0
        public void UpdateMyStatus(BJLocations place)
        {
            if (MyLocation == place)
            {
                // already there, do not update
            }
            else
            {
                // change place
                MyLocation = place;

                // calculate deposit and debt
                MyFinance.HandleBankAndDebt();

                // update health status
                MyHealth.UpdateHealthEvent();
                if (MyHealth.Hit)
                {
                    //TODO

                    MyHealth.Hit = false;
                }
                if (true)
                {
                }

                //TODO: update my fame
                MyFame.Decrease(1);

                // day minus one
                --MyDaysLeft;
            }
        }
Example #4
0
 private void MyInventory_InventoryGoodsSold(Goods goods)
 {
     if (goods.FameDown != 0)
     {
         //String msg1 = $"声誉下降了";
         MyFame.Decrease(goods.FameDown);
     }
 }
Example #5
0
 private void HomeButton_Click(object sender, RoutedEventArgs e)
 {
     MyFame.Navigate(typeof(Page1));
 }