////////////////////////////////////////////////// #region "///// INTERNAL METHODS /////" internal void InitiateDataServerConnection(string address) { try { Console.Write("> Opening Connection to Server: DmogDataServer... "); DSConnection = new DataServerConnection(); DSConnection.InitiateConnection(this, address); Console.WriteLine("OK!"); } catch (ServerConnectionException ex) { Console.WriteLine("ERROR!"); throw ex; } }
internal void CloseDataServerConnection() { try { Console.Write("> Closing Connection to Server: DmogDataServer... "); if (DSConnection != null) { DSConnection.CloseConnection(); DSConnection = null; } Console.WriteLine("OK!"); } catch (ServerConnectionException ex) { Console.WriteLine("ERROR!"); throw ex; } }