Example #1
0
        public Hunt_RO(Hunt h, TrueScore t)
        {
            this.DataContext = Main.lang;
            InitializeComponent();
            this.Top               = Properties.Settings.Default.Hunt_ROWindowTop;
            this.Left              = Properties.Settings.Default.Hunt_ROWindowLeft;
            lbl_map.Content        = Map.GetNameFromID(h.mapId);
            cb_Animal.Content      = Species.GetNameFromID(h.speciesID);
            cb_Sex.Content         = Sex.GetNameFromID(h.sexID);
            txt_Weight.Text        = h.weight.ToString();
            cb_Fur.Content         = Fur.GetNameFromID(h.furID);
            txt_Distance.Text      = h.distance.ToString();
            cb_Difficulty.Content  = Difficulty.GetNameFromID(h.difficultyID);
            cb_TrophyKind.Content  = TrophyKind.GetNameFromID(h.trophyKindID);
            cb_TrophyOrgan.Content = TrophyOrgane.GetNameFromID(h.trophyOrganeID);
            cb_Trophy.Content      = Trophy.GetNameFromID(h.trophyID);
            txt_Score.Text         = h.trophyScore.ToString();
            txt_XP.Text            = h.ep.ToString();
            txt_Money.Text         = h.money.ToString();
            txt_SessionPt.Text     = h.sessionPt.ToString();
            txt_trueA.Text         = t.trueA.ToString();
            txt_trueB.Text         = t.trueB.ToString();
            txt_trueC.Text         = t.trueC.ToString();
            txt_trueD.Text         = t.trueD.ToString();
            txt_trueE.Text         = t.trueE.ToString();
            txt_trueF.Text         = t.trueF.ToString();
            txtBl_Note.Text        = h.note;
            List <ControlHitList> list = h.GetControlHitList();

            foreach (ControlHitList hC in list)
            {
                sp_Hits.Children.Add(hC);
            }
        }
Example #2
0
 public ControlHunt(Hunt h, TrueScore t)
 {
     hunt      = h;
     trueScore = t;
     InitializeComponent();
     lb_Date.Content     = h.timestamp;
     lb_Map.Content      = Map.GetNameFromID(h.mapId);
     lb_Species.Content  = Species.GetNameFromID(h.speciesID);
     lb_trScore.Content  = h.trophyScore;
     lb_trKind.Content   = TrophyKind.GetNameFromID(h.trophyKindID);
     lb_trOrgane.Content = TrophyOrgane.GetNameFromID(h.trophyOrganeID);
     lb_trophy.Content   = Trophy.GetNameFromID(h.trophyID);
     lb_ep.Content       = h.ep;
     lb_money.Content    = h.money;
     lb_trueA.Content    = t.trueA;
     lb_trueB.Content    = t.trueB;
     lb_trueC.Content    = t.trueC;
     lb_trueD.Content    = t.trueD;
     lb_trueE.Content    = t.trueE;
     lb_trueF.Content    = t.trueF;
 }