private void Weather() { AnswersLogic.TempSelect select = new AnswersLogic.TempSelect(); AnswersLogic.Templates.AnswerWithPict WAData = new AnswersLogic.Templates.AnswerWithPict(); AnswersLogic.Weather.GetWeather(); select.SelectTemplate(WAData, null); }
private void HowAreU() { AnswersLogic.TempSelect select = new AnswersLogic.TempSelect(); AnswersLogic.Templates.AnswerWithPict SAData = new AnswersLogic.Templates.AnswerWithPict(); string str; str = xDoc.Root.Element("HowAreU").Element("Answers").Value; string[] randHi = str.Split(','); Random rnd = new Random(); MainVars.AnastasiaAnswer = randHi[rnd.Next(randHi.Count())]; select.SelectTemplate(SAData, null); }