Exemplo n.º 1
0
        public static void Main()
        {
            SplashScreen splashScreen = new SplashScreen("view/splashscreen.png");

            splashScreen.Show(true);
            EmissorNFe.App app = new EmissorNFe.App();
            Run(app);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Execute a form base application if another instance already running on
 /// the system activate previous one
 /// </summary>
 /// <param name="frmMain">main form</param>
 /// <returns>true if no previous instance is running</returns>
 public static bool Run(EmissorNFe.App app)
 {
     if (IsAlreadyRunning())
     {
         //set focus on previously running app
         SwitchToCurrentInstance();
         return(false);
     }
     app.InitializeComponent();
     app.Run();
     return(true);
 }