예제 #1
0
        public static void ShowErrorMessage(string _errorMessage, string _mainInstruction, System.Windows.Forms.Form _parent)
        {
            var form = new Form_Error(_mainInstruction, _errorMessage);

            form.TopMost = true;
            form.ShowDialog(_parent);
        }
예제 #2
0
        public static void ShowErrorMessage(Exception ex, System.Windows.Forms.Form _parent)
        {
            var emt  = ErrorMessageTechnical(ex);
            var form = new Form_Error(emt);

            form.TopMost = true;
            if (_parent != null && _parent.IsDisposed == false)
            {
                form.ShowDialog(_parent);
            }
            else
            {
                form.ShowDialog();
            }
        }