private void DrawingTimer_Tick(object sender, EventArgs e) { if (Jx3StoppedForm.InstanceCount >= Settings.MaxInstanceCount) { return; } Jx3StoppedForm msgbox = new Jx3StoppedForm(Settings.ClosingTime); msgbox.Show(); msgbox.BringToFront(); msgbox.Opacity = Settings.ForegroundOpacity; msgbox.Top = Top + m_random.Next(0, Math.Max(Height - msgbox.Height, 0)); msgbox.Left = Left + m_random.Next(0, Math.Max(Width - msgbox.Width, 0)); }
private void DrawingTimer_Tick(object sender, EventArgs e) { if (Jx3StoppedForm.InstanceCount >= Settings.MaxInstanceCount) return; Jx3StoppedForm msgbox = new Jx3StoppedForm(Settings.ClosingTime); msgbox.Show(); msgbox.BringToFront(); msgbox.Opacity = Settings.ForegroundOpacity; msgbox.Top = Top + m_random.Next(0, Math.Max(Height - msgbox.Height, 0)); msgbox.Left = Left + m_random.Next(0, Math.Max(Width - msgbox.Width, 0)); }