Пример #1
0
 // Инициализация иконок характеристик
 void InitImages()
 {
     imgSatiety.Source  = WPF_Misc.ImageSourceFromBitmap(DoctorSimulator.Properties.Resources.Satiety);
     imgMood.Source     = WPF_Misc.ImageSourceFromBitmap(WPF_Misc.GetMoodImage(Person.Mood));
     imgIntelect.Source = WPF_Misc.ImageSourceFromBitmap(DoctorSimulator.Properties.Resources.Intelect);
     imgGold.Source     = WPF_Misc.ImageSourceFromBitmap(DoctorSimulator.Properties.Resources.Gold);
     imgRank.Source     = WPF_Misc.ImageSourceFromBitmap(DoctorSimulator.Properties.Resources.Rank);
 }
Пример #2
0
        // Обновление характеристик
        public void RefreshCharacteristics()
        {
            homeWindow.tblSatiety.Text = person.Satiety.ToString();

            homeWindow.tblMood.Text     = person.Mood.ToString();
            homeWindow.imgMood.Source   = WPF_Misc.ImageSourceFromBitmap(WPF_Misc.GetMoodImage(person.Mood));
            homeWindow.tblIntelect.Text = person.Intelect.ToString();

            homeWindow.tblGold.Text = person.Money.ToString();
            homeWindow.cc.Text      = person.Rank.Name;

            homeWindow.tblTime.Text = person.GetTimeString();
        }