public void Show(string text) { Slip temp = new Slip(Factory.CurrentTheme, text); temp.FormClosed += new FormClosedEventHandler(temp_FormClosed); Slips.Enqueue(temp); }
void timer_Tick(object sender, EventArgs e) { if (activeSlip == null && Slips.Count > 0) { activeSlip = Slips.Dequeue(); activeSlip.Show(); } if (activeSlip != null) activeSlip.Tick(); }
void timer_Tick(object sender, EventArgs e) { if (activeSlip == null && Slips.Count > 0) { activeSlip = Slips.Dequeue(); activeSlip.Show(); } if (activeSlip != null) { activeSlip.Tick(); } }
void temp_FormClosed(object sender, FormClosedEventArgs e) { activeSlip.Dispose(); activeSlip = null; }