public static void Report(string space, string data, Exception ex, string highlight, string user, string pass, LoginSucceedDel handlesuceed, bool pause, string summary, string suceedurl, string failurl) { string header = Header(space, ex); AssemblaTicketWindow atw = new AssemblaTicketWindow(space, user, pass, highlight + header, data, summary, suceedurl, failurl); if (ex != null) { atw.Text = "Create ticket for crash report"; atw.Invalidate(true); } if (handlesuceed != null) { atw.LoginSucceeded += new LoginSucceedDel(handlesuceed); } if (pause) { atw.ShowDialog(); } else { atw.Show(); } }
public static void Report(string space, string data, Exception ex, bool showtemplate, string user, string pass, LoginSucceedDel handlesuceed, bool pause) { string[] r = new string[] { "Product:" + space, "Exception:" + (ex != null ? ex.Message : "n/a"), "StackTrace:" + (ex != null ? ex.StackTrace : "n/a"), "CommandLine:" + Environment.CommandLine, "OS:" + Environment.OSVersion.VersionString + " " + (IntPtr.Size * 8).ToString() + "bit", "CLR:" + Environment.Version.ToString(4), "TradeLink:" + TradeLink.Common.Util.TLSIdentity(), "Memory:" + Environment.WorkingSet.ToString(), "Processors:" + Environment.ProcessorCount.ToString() }; string desc = string.Join(Environment.NewLine, r); AssemblaTicketWindow atw = new AssemblaTicketWindow(space, user, pass, showtemplate ? templatequest(desc) : desc,data); if (ex != null) { atw.Text = "Create ticket for crash report"; atw.Invalidate(true); } if (handlesuceed != null) { atw.LoginSucceeded+=new LoginSucceedDel(handlesuceed); } if (pause) atw.ShowDialog(); else atw.Show(); }
public static void Report(string space, string data, Exception ex, bool showtemplate, string user, string pass, LoginSucceedDel handlesuceed, bool pause) { string[] r = new string[] { "Product:" + space, "Exception:" + (ex != null ? ex.Message : "n/a"), "StackTrace:" + (ex != null ? ex.StackTrace : "n/a"), "CommandLine:" + Environment.CommandLine, "OS:" + Environment.OSVersion.VersionString + " " + (IntPtr.Size * 8).ToString() + "bit", "CLR:" + Environment.Version.ToString(4), "TradeLink:" + TradeLink.Common.Util.TLSIdentity(), "Memory:" + Environment.WorkingSet.ToString(), "Processors:" + Environment.ProcessorCount.ToString() }; string desc = string.Join(Environment.NewLine, r); AssemblaTicketWindow atw = new AssemblaTicketWindow(space, user, pass, showtemplate ? templatequest(desc) : desc, data); if (ex != null) { atw.Text = "Create ticket for crash report"; atw.Invalidate(true); } if (handlesuceed != null) { atw.LoginSucceeded += new LoginSucceedDel(handlesuceed); } if (pause) { atw.ShowDialog(); } else { atw.Show(); } }
public static void Report(string space, string data, Exception ex, string highlight, string user, string pass, LoginSucceedDel handlesuceed, bool pause,string summary,string suceedurl, string failurl) { string header = Header(space, ex); AssemblaTicketWindow atw = new AssemblaTicketWindow(space, user, pass, highlight + header,data,summary,suceedurl,failurl); if (ex != null) { atw.Text = "Create ticket for crash report"; atw.Invalidate(true); } if (handlesuceed != null) { atw.LoginSucceeded+=new LoginSucceedDel(handlesuceed); } if (pause) atw.ShowDialog(); else atw.Show(); }