public static void ShowForm(IEnumerable <string> strings, byte[] checks, byte checkByte, long position) { if (!Enabled) { return; } if (wardenDebugForm == null || wardenDebugForm.IsDisposed) { wardenDebugForm = new FrmWardenDebug(); } wardenDebugForm.XorByte = checks[checks.Length - 1]; wardenDebugForm.Text = String.Format("Warden Debug: 0x{0:X2}", checkByte); wardenDebugForm.SetInfo(CreateTextInfo(strings, checks), position); wardenDebugForm.CheckTypes = CheckTypes; if (!wardenDebugForm.Visible) { wardenDebugForm.Show(); } }
public static void ShowForm(IEnumerable<string> strings, byte[] checks, byte checkByte, long position) { if (!Enabled) return; if (wardenDebugForm == null || wardenDebugForm.IsDisposed) wardenDebugForm = new FrmWardenDebug(); wardenDebugForm.XorByte = checks[checks.Length - 1]; wardenDebugForm.Text = String.Format("Warden Debug: 0x{0:X2}", checkByte); wardenDebugForm.SetInfo(CreateTextInfo(strings, checks), position); wardenDebugForm.CheckTypes = CheckTypes; if (!wardenDebugForm.Visible) wardenDebugForm.Show(); }