static void Main(string[] args) { try { if (args.Length == 2) { D.ArgLoja = args[0].PadLeft(6, '0'); D.ArgFtpUsuario = args[1]; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmPrincipal frmPrincipal = new FrmPrincipal(); if (!D.ModoTeste) Application.ThreadException += new ThreadExceptionEventHandler(frmPrincipal.UnhandledThreadExceptionHandler); frmPrincipal.Start(); Application.Run(frmPrincipal); } catch(Exception e) { if (D.ModoTeste) { throw e; } else { FE.Show(e); } } }
public Roteiro(FrmPrincipal j) : this() { janela = j; }