Esempio n. 1
0
 private void BtnWeatherDescriptionSearch_Click(object sender, EventArgs e)
 {
     lbWeather.Items.Clear();
     foreach (LibraryEntry weather in InformationLibrary.WeatherDescriptionSearch(tbWeatherSearchKeyword.Text))
     {
         lbWeather.Items.Add(weather.Name);
     }
 }
Esempio n. 2
0
        private string GetRandomPlantNameBasedOn(PlantCategories plantCategories)
        {
            List <Plant> plants = InformationLibrary.PlantClosedSearchByCategory(plantCategories);

            Plant plant = plants[DiceRoller.RandomRangeNumber(0, plants.Count - 1)];

            return(plant.Name);
        }
Esempio n. 3
0
        private void btnPlantCategorySearch_Click(object sender, EventArgs e)
        {
            lbPlants.Items.Clear();

            foreach (Plant plant in InformationLibrary.PlantOpenSearchByCategory(GetPlantSearchCatagories()))
            {
                lbPlants.Items.Add(plant.Name);
            }
        }
Esempio n. 4
0
        private void btnPlantDescriptionSearch_Click(object sender, EventArgs e)
        {
            lbPlants.Items.Clear();

            foreach (Plant plant in InformationLibrary.PlantSearchByDescription(tbPlantSearchKeyword.Text))
            {
                lbPlants.Items.Add(plant.Name);
            }
        }
Esempio n. 5
0
        private void btnPlantNameSearch_Click(object sender, EventArgs e)         // this search im still not sure if i like, something about it feels off but im not sure what
        {
            lbPlants.Items.Clear();

            foreach (Plant plant in InformationLibrary.PlantSearchByName(tbPlantSearchKeyword.Text))
            {
                lbPlants.Items.Add(plant.Name);
            }
        }
Esempio n. 6
0
        private void btnFeatsSearchPrerequisite_Click(object sender, EventArgs e)
        {
            lbFeats.Items.Clear();

            lbFeats.Items.Add(InformationLibrary.FeatEntries[0].Name);

            foreach (Feat feat in InformationLibrary.FeatPrerequisiteSearch(tbFeatsSearchKeyword.Text))
            {
                if (feat == InformationLibrary.FeatEntries[0])
                {
                    continue;
                }
                lbFeats.Items.Add(feat.Name);
            }
        }
Esempio n. 7
0
        private void InitializeInformationLibrary()
        {
            InformationLibrary.InitializeLibrary();

            foreach (Plant plant in InformationLibrary.PlantEntries)
            {
                lbPlants.Items.Add(plant.Name);
            }
            foreach (LibraryEntry weather in InformationLibrary.WeatherEntries)
            {
                lbWeather.Items.Add(weather.Name);
            }
            foreach (Feat feat in InformationLibrary.FeatEntries)
            {
                lbFeats.Items.Add(feat.Name);
            }

            informationTBFontSize = 8.5f;
            TbInformation.Font    = new Font(FontFamily.GenericMonospace, informationTBFontSize);
        }
Esempio n. 8
0
 private void btnSoundRainIndoors_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundRainIndoors();
 }
Esempio n. 9
0
 private void btnSoundDrumWar_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundDrumWar();
 }
Esempio n. 10
0
 private void btnSoundHarpLuteDrum_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundHarpLuteDrum();
 }
Esempio n. 11
0
 private void btnSoundLute_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundLute();
 }
Esempio n. 12
0
 private void btnSoundNightSwamp_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundNightSwamp();
 }
Esempio n. 13
0
 private void btnSoundThunderCrack_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundThunderCrack();
 }
Esempio n. 14
0
 private void btnSoundRoughOcean_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundRoughOcean();
 }
Esempio n. 15
0
 private void btnSoundTavern_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundTavern();
 }
Esempio n. 16
0
 private void btnSoundSeaShanties_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundSeaShanties();
 }
Esempio n. 17
0
 private void btnSoundWindLight_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundWindLight();
 }
Esempio n. 18
0
 private void btnSoundChoirChants_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundMedievalChantsInRain();
 }
Esempio n. 19
0
 private void btnSoundFireHeavy_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundFireHeavy();
 }