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); } }
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); } }