public static void Show(string errorMessage1, string errorMessage2, string errorMessage3) { FormShown = new PopupErrorBox(errorMessage1, errorMessage2, errorMessage3); FormShown.BringToFront(); FormShown.ShowDialog(); }
static void DisposeItem() { if (FormShown != null) { FormShown.Close(); } FormShown = null; }