private void HandleCrashLogListRequest(CrashLogListRequestPacket packet)
        {
            // Rewrite
            if (!Authorized)
            {
                SendPacket(new AuthorizationDisconnectPacket { Reason = "Not authorized!" });
                return;
            }

            List<Log> Logs = new List<Log>();
            for (int i = 0; i < Directory.GetFiles(Core.Setting.ApplicationDirectory + "\\CrashLogs").Length; i++)
            {
                Logs.Add(new Log() { LogFileName = Path.GetFileName(Directory.GetFiles(Core.Setting.ApplicationDirectory + "\\CrashLogs")[i]) });
            }

            SendPacket(new CrashLogListResponsePacket { CrashLogList = new LogList(Logs.ToArray()) });
        }
        private void HandleCrashLogListRequest(CrashLogListRequestPacket packet)
        {
            if (!Authorized)
            {
                SendPacket(new AuthorizationDisconnectPacket {Reason = "Not authorized!"});
                return;
            }

            var list = Storage.CrashLogFolder.GetFilesAsync().Result;

            var crashLogs = new List<Log>();
            foreach (var file in list)
                crashLogs.Add(new Log {LogFileName = file.Name});

            SendPacket(new CrashLogListResponsePacket { CrashLogs = crashLogs.ToArray() });
        }