///<summary>DataConnection will be repeatedly trying to reestablish a database connection, and will throw this event when it does.</summary>
 private void DataConnection_ConnectionRestored(DataConnectionEventArgs e)
 {
     if (e.IsConnectionRestored)
     {
         DialogResult = DialogResult.OK;
     }
 }
 public void DataConnectionEvent_Fired(DataConnectionEventArgs e)
 {
     try {
         //Check to see if an ODEventType was set otherwise check the ODEventName to make sure this is an event that this instance cares to process.
         if (_odEventType != ODEventType.Undefined)
         {
             if (_odEventType != e.EventType)
             {
                 return;
             }
         }
         if (e.IsConnectionRestored)
         {
             _shouldWindowClose = true;
         }
     }
     catch (Exception ex) {
         ex.DoNothing();
     }
 }