예제 #1
0
 public static void Popup()
 {
     if (newPopupForm == null)
     {
         newPopupForm             = new PopupNotifierListForm();
         newPopupForm.PopupClose += new PopupNotifierListForm.PopupNotifierCloseHandler(PopupClose);
         newPopupForm.Show();
     }
     else
     {
         messageList.Add(ContentText);
         sizeList.Add(Size);
         delayList.Add(ShowDelay);
     }
 }
예제 #2
0
 private static void PopupClose()
 {
     if (messageList.Count == 0)
     {
         if (newPopupForm != null)
         {
             newPopupForm.Close();
             newPopupForm = null;
         }
     }
     else
     {
         newPopupForm.ResetValue(messageList[0], sizeList[0], delayList[0]);
         messageList.RemoveAt(0);
         sizeList.RemoveAt(0);
         delayList.RemoveAt(0);
     }
 }