internal void Alert(string message)
        {
            SaveToDatabaseWindow saveWindow = new SaveToDatabaseWindow("Alert", message);

            saveWindow.Show();
            Logit(message);
        }
 /// <summary>
 /// Show the status window, and wait for the user to respond.
 /// </summary>
 /// <param name="message"></param>
 private DialogResult ShowYesNo(bool isInteractive, string title, string message)
 {
     if (isInteractive == false)
     {
         Logit(message);
         return(DialogResult.Ignore);
     }
     else
     {
         using (SaveToDatabaseWindow queryWindow = new SaveToDatabaseWindow(title, message))
         {
             DialogResult result = queryWindow.ShowDialog();
             return(result);
         }
     }
 }
        /// <summary>
        /// Method to prompt the user for saving tables and SimioLogs.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="caption"></param>
        /// <param name="saveTables"></param>
        /// <param name="saveLogs"></param>
        private void SaveDataToSql(string message, string caption, out bool saveTables, out bool saveLogs)
        {
            saveTables = true;
            saveLogs   = true;

            SaveToDatabaseWindow saveWindow = new SaveToDatabaseWindow(caption, message);

            DialogResult result = saveWindow.ShowDialog();

            Logit(message);

            if (result == DialogResult.OK)
            {
                saveTables = saveWindow.SaveTables;
                saveLogs   = saveWindow.SaveLogs;
            }
        }