private void RunQuery(ClientIncomingPacket packet) { try { using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.runFastQuery(packet.ReadString()); } connection.sendData(new QueryResult(true)); } catch { connection.sendData(new QueryResult(false)); } }
private void ShutDownServerDialogged(ClientIncomingPacket packet) { this.keepThreadAlive = false; MessageBox.Show("Startup has failed due to the following reason\r\n\r\n" + packet.ReadString(), "Startup failed", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification, false); ButterflyEnvironment.PreformShutDown(true); Environment.Exit(Environment.ExitCode); }