private void buttonSend_Click(object sender, EventArgs e) { chat.SendingMessages(); chat.ReplyToMessage(); chat.FindingByGenre(); chat.FilmCounter(); }
private void buttonOk_Click(object sender, EventArgs e) { yearfrom = Convert.ToInt32(comboBoxYearFrom.SelectedItem); yearto = Convert.ToInt32(comboBoxYearTo.SelectedItem); Close(); if (yearfrom == 0) { foreach (Film f in films.GetByYear(yearto)) { frm1.textBoxMessages.AppendText("Бот: " + f.ToString() + Environment.NewLine); } } else if (yearto == 0) { foreach (Film f in films.GetByYear(yearfrom)) { frm1.textBoxMessages.AppendText("Бот: " + f.ToString() + Environment.NewLine); } } else { foreach (Film f in films.GetByYearBetween(yearfrom, yearto)) { frm1.textBoxMessages.AppendText("Бот: " + f.ToString() + Environment.NewLine); } } chat.FilmCounter(); }
private void button1_Click(object sender, EventArgs e) { Close(); foreach (Film f in films.GetByRating(rating)) { frm1.textBoxMessages.AppendText("Бот: " + f.ToString() + Environment.NewLine); } chat.FilmCounter(); }
void Returning() { Close(); chat.FilmCounter(); }