src/RumahScarlett/RumahScarlett.Presentation/MainProgram.cs
/// <summary>
/// The main entry point for the application.
/// </summary>
The main entry point for the application.
The main entry point for the application .
[STAThread]
      static void Main()
      {
         Application.ThreadException += new ThreadExceptionEventHandler(ReportCrash);
         if (Process.GetProcessesByName(Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location)).Count() > 1)
         {
            Messages.Error("Aplikasi Sedang Berjalan !!!");
            return;
         }
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         var view = new LoginPresenter().GetView;
         Application.Run((Form)view);
      }
[ STAThread ] static void Main ( ) { Application . ThreadException += new ThreadExceptionEventHandler ( ReportCrash ) ; if ( Process . GetProcessesByName ( Path . GetFileNameWithoutExtension ( Assembly . GetEntryAssembly ( ) . Location ) ) . Count ( ) > 1 ) { Messages . Error ( " " ) ; return ; } Application . EnableVisualStyles ( ) ; Application . SetCompatibleTextRenderingDefault ( false ) ; var view = new LoginPresenter ( ) . GetView ; Application . Run ( ( Form ) view ) ; }
The main entry point for the application.
The main entry point for the application .
// Mengubah Exception dihandle oleh ExceptionReporter