Core
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.Core.App;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.PatientMgr.App.Forms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.App
|
||||
{
|
||||
//=======================================================================
|
||||
static class Program
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>The main entry point for the application.</summary>
|
||||
[STAThread]
|
||||
static void Main (string[] args)
|
||||
{
|
||||
// Parse command line.
|
||||
SacsCommandLineInfo CmdLineInfo = new SacsCommandLineInfo(args);
|
||||
bool runProcesses = (CmdLineInfo.ProcessDefinitions.Count > 0);
|
||||
|
||||
// PatientMgr Application.
|
||||
String logMessageSuffix = (runProcesses ? " [auto]" : "");
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
// Main form.
|
||||
SaPatientMgrForm.Config configMainForm = new SaPatientMgrForm.Config();
|
||||
using (Form mainForm = new SaPatientMgrForm(configMainForm))
|
||||
{
|
||||
Application.Run(mainForm);
|
||||
}
|
||||
Logger.Info(Spm.ApplicationCaption + " End" + logMessageSuffix, true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user