private static void createMessageForm()
 {
     _frm = new FormWarning();
     _frm.Invoke((MethodInvoker)(delegate()
     {
         _frm.ShowDialog();
     }
                                 ));
 }
        public static void ShowMessageDialog(Form owner, string message, params object[] values)
        {
            if (values == null || values.Length == 0)
            {
            }
            else
            {
                message = string.Format(CultureInfo.InvariantCulture, message, values);
            }
            FormWarning f = new FormWarning();

            f.StartPosition = FormStartPosition.CenterScreen;
            f.SetMessage(message);
            f.ShowDialog(owner);
        }