public void LogData(LogType logType, string Message = "") { LogBox.Invoke(new Action(() => { switch (logType) { case LogType.System: LogBox.BindText(Color.DimGray, "[SYSTEM] "); LogBox.BindText(Color.White, $"{Message}\n"); break; case LogType.Info: LogBox.BindText(Color.DimGray, "[LOG] "); LogBox.BindText(Color.FromArgb(85, 136, 238), $"{Message}\n"); break; case LogType.Error: LogBox.BindText(Color.DimGray, "[ERROR] "); LogBox.BindText(Color.Red, $"{Message}\n"); break; default: break; } })); }