Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();
            //UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            UserLookAndFeel.Default.SetSkinStyle("Office 2007 Blue");

            //Application.Run(new iPOS.IMC.Tool.frmWaiting());

            if (!File.Exists(Application.StartupPath + @"\Config.ini"))
            {
                MessageBox.Show("Thieu file Config");
                return;
            }
            else
            {
                DevExpress.XtraEditors.WindowsFormsSettings.TouchUIMode = (ConfigEngine.TouchMode) ? DevExpress.LookAndFeel.TouchUIMode.True : TouchUIMode.False;
                if (ConfigEngine.TouchMode)
                    DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("Tahoma", 10);

                frmLogin frm = new frmLogin(ConfigEngine.Language);
                if (frm.ShowDialog() == DialogResult.OK)
                    Application.Run(new frmMain(ConfigEngine.Language));
                else Application.Exit();
            }
        }