예제 #1
0
 private void buttonSend_Click(object sender, EventArgs e)
 {
     chat.SendingMessages();
     chat.ReplyToMessage();
     chat.FindingByGenre();
     chat.FilmCounter();
 }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }
예제 #4
0
 void Returning()
 {
     Close();
     chat.FilmCounter();
 }