public static DialogResult Show(string title, string message, IWin32Window parent) { FCMessageBox toShow = new FCMessageBox(message); toShow.Text = title; toShow.Height = toShow.fcTextBox1.Height + 110; return(toShow.ShowDialog(parent)); }
protected virtual void HideErrorMessage() { if (dbConnectionError != null && !dbConnectionError.IsDisposed) { dbConnectionError.Close(); dbConnectionError.Dispose(); dbConnectionError = null; } }
protected virtual void ShowErrorMessage() { if (IsErrorMessageEnabled) { if (dbConnectionError == null || dbConnectionError.IsDisposed) { dbConnectionError = new FCMessageBox("There is a problem connecting to your database."); dbConnectionError.Text = "Connection Error"; } dbConnectionError.ShowDialog(this); } }