Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public static void Report(string space, string data, Exception ex, string highlight, string user, string pass, LoginSucceedDel handlesuceed, bool pause, string summary)
 {
     Report(space, data, ex, highlight, user, pass, handlesuceed, pause, summary, string.Empty, string.Empty);
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 public static void Report(string space, string data, Exception ex, bool showtemplate, string user, string pass, LoginSucceedDel handlesuceed, bool pause)
 {
     Report(space, data, ex, showtemplate, user, pass, handlesuceed, pause,Summary(space));
 }
Esempio n. 5
0
 public static void Report(string space, string data, Exception ex, bool showtemplate, string user, string pass, LoginSucceedDel handlesuceed, bool pause,string summary)
 {
     Report(space, data, ex, (showtemplate ? templatequest() : string.Empty), user, pass, handlesuceed, pause,summary,string.Empty,string.Empty); 
 }
 public static void Report(string space, string data, Exception ex, bool showtemplate, string user, string pass, LoginSucceedDel handlesuceed, bool pause)
 {
     Report(space, data, ex, showtemplate, user, pass, handlesuceed, pause, Summary(space));
 }
        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, string highlight, string user, string pass, LoginSucceedDel handlesuceed, bool pause, string summary)
 {
     Report(space, data, ex, highlight, user, pass, handlesuceed, pause, summary, string.Empty, string.Empty);
 }
 public static void Report(string space, string data, Exception ex, bool showtemplate, string user, string pass, LoginSucceedDel handlesuceed, bool pause, string summary)
 {
     Report(space, data, ex, (showtemplate ? templatequest() : string.Empty), user, pass, handlesuceed, pause, summary, string.Empty, string.Empty);
 }
Esempio n. 10
0
        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();
            }
        }