public static void ShowError(string text, string caption, Exception ex)
 {
     using (var f = new CustomMessageBoxForm(text, caption, ex))
     {
         f.ShowDialog();
     };
 }
 public static void ShowError(string text, string caption, Exception ex)
 {
     using (var f = new CustomMessageBoxForm(text, caption, ex))
     {
         f.ShowDialog();
     };
 }