static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();

            UserLookAndFeel.Default.SetSkinStyle("Office 2010 Black");
            UserLookAndFeel.Default.SkinMaskColor = Color.FromArgb(50, 59, 74);

            DialogResult result = DialogResult.None;

            ApplicationStaticConfiguration.Application = DB_Application.ClinicReception;
            if (ApplicationStaticConfiguration.LoadApplicationConfiguration())
            {
                DBBusinessLogicLibrary.LoadDBItemsList();
                result = Login_UC.ShowLoginScreen();
            }

            switch (result)
            {
            case DialogResult.OK:
                Application.Run(new QueueManagerMainForm());
                break;

            case DialogResult.Cancel:
                Process.GetCurrentProcess().Kill();
                break;
            }
        }
示例#2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BonusSkins.Register();
            SkinManager.EnableFormSkins();

            DialogResult           result = DialogResult.None;
            Choose_PEMR_VS_Surgery choose = new Choose_PEMR_VS_Surgery();

            result = choose.ShowDialog();
            switch (result)
            {
            case DialogResult.Cancel:
                if (ApplicationStaticConfiguration.LoadApplicationConfiguration())
                {
                    DBBusinessLogicLibrary.LoadDBItemsList();
                    result = Login_UC.ShowLoginScreen();
                }
                break;
            }

            switch (result)
            {
            case DialogResult.OK:
                MerkDBBusinessLogicEngine.Private_StationPoint = ApplicationStaticConfiguration.Station;
                UserLookAndFeel.Default.SetSkinStyle(ApplicationStaticConfiguration.SkinName);
                if (ApplicationStaticConfiguration.SkinColor != null)
                {
                    UserLookAndFeel.Default.SkinMaskColor = Color.FromArgb(
                        ((Color)ApplicationStaticConfiguration.SkinColor).R,
                        ((Color)ApplicationStaticConfiguration.SkinColor).G,
                        ((Color)ApplicationStaticConfiguration.SkinColor).B);
                }
                Application.Run(new Form1());
                break;

            case DialogResult.Cancel:
                Process.GetCurrentProcess().Kill();
                break;
            }
        }
示例#3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BonusSkins.Register();
            SkinManager.EnableFormSkins();

            UserLookAndFeel.Default.SetSkinStyle("Office 2010 Black");
            UserLookAndFeel.Default.SkinMaskColor = Color.FromArgb(50, 59, 74);

            DialogResult result = DialogResult.None;

            ApplicationStaticConfiguration.Application = DB_Application.MerkFinance;
            if (ApplicationStaticConfiguration.LoadApplicationConfiguration())
            {
                DBBusinessLogicLibrary.LoadDBItemsList();
                result = Login_UC.ShowLoginScreen();
            }

            switch (result)
            {
            case DialogResult.OK:
                UserLookAndFeel.Default.SetSkinStyle(ApplicationStaticConfiguration.SkinName);
                if (ApplicationStaticConfiguration.SkinColor != null)
                {
                    UserLookAndFeel.Default.SkinMaskColor = Color.FromArgb(
                        ((Color)ApplicationStaticConfiguration.SkinColor).R,
                        ((Color)ApplicationStaticConfiguration.SkinColor).G,
                        ((Color)ApplicationStaticConfiguration.SkinColor).B);
                }

                ApplicationStaticConfiguration.SaveLoggingHistory();
                Application.Run(new MainForm());
                break;

            case DialogResult.Cancel:
                Process.GetCurrentProcess().Kill();
                break;
            }
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();

            DialogResult result = DialogResult.None;

            ApplicationStaticConfiguration.Application = DB_Application.OneDaySurgeryReception;
            if (ApplicationStaticConfiguration.LoadApplicationConfiguration())
            {
                DBBusinessLogicLibrary.LoadDBItemsList();
                result = Login_UC.ShowLoginScreen();
            }

            switch (result)
            {
            case DialogResult.OK:
                UserLookAndFeel.Default.SetSkinStyle(ApplicationStaticConfiguration.SkinName);
                if (ApplicationStaticConfiguration.SkinColor != null)
                {
                    UserLookAndFeel.Default.SkinMaskColor = Color.FromArgb(
                        ((Color)ApplicationStaticConfiguration.SkinColor).R,
                        ((Color)ApplicationStaticConfiguration.SkinColor).G,
                        ((Color)ApplicationStaticConfiguration.SkinColor).B);
                }
                Application.Run(new ReceptionMainForm());
                break;

            case DialogResult.Cancel:
                Process.GetCurrentProcess().Kill();
                break;
            }
        }