Exemple #1
0
 private void AlertLabel_MouseEnter(object sender, EventArgs e)
 {
     if (AlertLabel.Text != "0 новых уведомлений")
     {
         foreach (Reader r in lib.GetReaders())
         {
             foreach (Book b in r.CheckBooks())
             {
                 BooksBackList.Text += "Читатель ";
                 BooksBackList.Text += r;
                 BooksBackList.Text += "должен вернуть книгу ";
                 BooksBackList.Text += b;
                 BooksBackList.Text += "\n";
             }
         }
     }
     BooksBackList.Location = new Point(AlertLabel.Location.X + AlertLabel.Width - BooksBackList.Width, AlertLabel.Location.Y);
     BooksBackList.Show();
 }
Exemple #2
0
 private void BooksBackList_MouseLeave(object sender, EventArgs e)
 {
     BooksBackList.Hide();
     BooksBackList.Text = "";
 }