Example #1
0
        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));
        }
Example #2
0
 protected virtual void HideErrorMessage()
 {
     if (dbConnectionError != null && !dbConnectionError.IsDisposed)
     {
         dbConnectionError.Close();
         dbConnectionError.Dispose();
         dbConnectionError = null;
     }
 }
Example #3
0
 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);
     }
 }