Ejemplo n.º 1
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();
            }
        }
Ejemplo n.º 2
0
 public LogViewer(string spacefilter, AssemblaTicketWindow.LoginSucceedDel loginsuccess,string User, string Pw)
 {
     namefilter = spacefilter;
     loginsucceed = loginsuccess;
     user = User;
     pw = Pw;
     if (loginsucceed == null)
         loginsucceed = new AssemblaTicketWindow.LoginSucceedDel(succeed);
     InitializeComponent();
     if (namefilter!=string.Empty)
     {
         Text = PROGRAM + " " + namefilter;
         Invalidate();
     }
     ContextMenu = new ContextMenu();
     ContextMenu.MenuItems.Add("View", new EventHandler(view));
     ContextMenu.MenuItems.Add("Ticket", new EventHandler(aticket));
     ContextMenu.MenuItems.Add("Delete", new EventHandler(del));
     DoubleClick += new EventHandler(LogViewerMain_DoubleClick);
     _logs.DoubleClick += new EventHandler(_logs_DoubleClick);
     _logs.SelectionMode = SelectionMode.MultiExtended;
     _logs.Sorted = true;
     init();
     fsw =  new System.IO.FileSystemWatcher(PATH,WILDEXT);
     fsw.IncludeSubdirectories = false;
     fsw.Changed += new System.IO.FileSystemEventHandler(fsw_Changed);
     fsw.Created += new System.IO.FileSystemEventHandler(fsw_Created);
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
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();
            }
        }
Ejemplo n.º 5
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();
 }
Ejemplo n.º 6
0
 public static void Report(string PROGRAM, string username, string password, string data, Exception ex,AssemblaTicketWindow.LoginSucceedDel success,bool pause,string desc)
 {
     CrashReport cr = new CrashReport(PROGRAM, username, password, ex,data,desc);
     if (success!=null)
         cr.TicketSucceed+=new AssemblaTicketWindow.LoginSucceedDel(success);
     if (pause)
         cr.ShowDialog();
     else
         cr.Show();
 }
Ejemplo n.º 7
0
 public static void Report(string PROGRAM, string data, Exception ex, AssemblaTicketWindow.LoginSucceedDel success, bool pause, string desc) { Report(PROGRAM, Util.decode(D), Util.decode(d), data, ex, success, pause, desc); }
Ejemplo n.º 8
0
 public static void Report(string PROGRAM, string username, string password, string data, Exception ex, AssemblaTicketWindow.LoginSucceedDel success, bool pause)
 {
     Report(PROGRAM, username, password, data, ex, success, pause, Desc(PROGRAM));
 }
Ejemplo n.º 9
0
 public static void Report(string PROGRAM, string username, string password, System.Threading.ThreadExceptionEventArgs e, AssemblaTicketWindow.LoginSucceedDel success) { Report(PROGRAM, username, password, string.Empty,e.Exception,success,true); }