Beispiel #1
0
        /// <summary>
        /// Shows error dialog.
        /// </summary>
        /// <param name="e">MySqlException to show.</param>
        /// <param name="status">Table engine statuses to display in advanced information.</param>
        public static void ShowError(DbException e, string status)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }
            if (status == null)
            {
                throw new ArgumentNullException("status");
            }

            SqlErrorDialog dialog = new SqlErrorDialog(e, status);

            UIHelper.ShowDialog(dialog);
        }
Beispiel #2
0
        /// <summary>
        /// Shows error dialog.
        /// </summary>
        /// <param name="e">MySqlException to show.</param>
        /// <param name="status">Table engine statuses to display in advanced information.</param>
        public static void ShowError(DbException e, string status)
        {
            if (e == null)
                throw new ArgumentNullException("e");
            if (status == null)
                throw new ArgumentNullException("status");

            SqlErrorDialog dialog = new SqlErrorDialog(e, status);
            UIHelper.ShowDialog(dialog);
        }