// opens xray from the builder exe to analyze the dat public static void Analyze(string path) { AppDir = Path.GetDirectoryName(path); DatPath = path; if (LoadNodeMap()) { ApplySettings(); var ui = new XUI(); ui.Thread = Thread.CurrentThread; ui.Window = new MainForm(); UIs[ui.Thread.ManagedThreadId] = ui; ui.Window.Show(); } }
public static void StartGui() { XUI ui = new XUI(); ui.Thread = new Thread(() => { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ui.Window = new MainForm(); Application.Run(ui.Window); } catch (Exception ex) { LogError("Gui Error: " + ex.Message); } UIs.Remove(Thread.CurrentThread.ManagedThreadId); }); ui.Thread.SetApartmentState(ApartmentState.STA); ui.Thread.Start(); UIs[ui.Thread.ManagedThreadId] = ui; }
// opens xray from the builder exe to analyze the dat public static void Analyze(string path) { AppDir = Path.GetDirectoryName(path); DatPath = path; // enable so call lines show FlowTracking = true; ThreadTracking = true; ClassTracking = true; if (LoadNodeMap()) { ApplySettings(); var ui = new XUI(); ui.Thread = Thread.CurrentThread; ui.Window = new MainForm(); UIs[ui.Thread.ManagedThreadId] = ui; ui.Window.Show(); } }