// events protected virtual void OnConnectToDB(string exception) { ConnectToDB?.Invoke(this, new DataBaseManagerEventArgs() { Exception = exception }); }