Example #1
0
 static void RegisterFilterEnums()
 {
     EnumProcessingHelper.RegisterEnum(typeof(CustomerStatus));
     EnumProcessingHelper.RegisterEnum(typeof(EmployeeStatus));
     EnumProcessingHelper.RegisterEnum(typeof(EmployeeTaskStatus));
     EnumProcessingHelper.RegisterEnum(typeof(EmployeeTaskPriority));
 }
Example #2
0
 public CubeModule()
 {
     InitializeComponent();
     BaseObject.OidInitializationMode = OidInitializationMode.AfterConstruction;
     EnumProcessingHelper.RegisterEnum(typeof(OrderState));
     EnumProcessingHelper.RegisterEnum(typeof(OrderType));
     EnumProcessingHelper.RegisterEnum(typeof(ProductUnit));
 }
        static FilterTreeViewModel()
        {
            var enums = typeof(EmployeeStatus).Assembly.GetTypes().Where(t => t.IsEnum);

            foreach (Type e in enums)
            {
                EnumProcessingHelper.RegisterEnum(e);
            }
        }
Example #4
0
        static void Main(string[] arguments)
        {
            DataHelper.ApplicationArguments = arguments;
            DevExpress.Utils.LocalizationHelper.SetCurrentCulture(DataHelper.ApplicationArguments);
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2010 Blue");
            SkinManager.EnableFormSkins();
            EnumProcessingHelper.RegisterEnum <TaskStatus>();

            SplashScreenManager.ShowForm(typeof(ssMain));
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
        }
        static void Main(string[] arguments)
        {
            DataHelper.ApplicationArguments = arguments;
            DevExpress.Utils.LocalizationHelper.SetCurrentCulture(DataHelper.ApplicationArguments);
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Utils.AppearanceObject.DefaultFont = new Font("Segoe UI", 8);
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013");
            SkinManager.EnableFormSkins();
            EnumProcessingHelper.RegisterEnum <TaskStatus>();

            SplashScreenManager.ShowForm(null, typeof(ssMain), true, true, false, 1000);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FrmMain());
        }
Example #6
0
        static void Main(string[] arguments)
        {
            WindowsFormsSettings.ApplyDemoSettings();
            //new DevExpress.DemoReports.ConnectionStringConfigurator(System.Configuration.ConfigurationManager.ConnectionStrings)
            //    .SelectDbEngine()
            //    .ExpandDataDirectory(fileName => DevExpress.DemoData.Helpers.DataFilesHelper.FindFile(fileName, DevExpress.DemoData.Helpers.DataFilesHelper.DataPath));

            //string path = DevExpress.Utils.FilesHelper.FindingFileName(AppDomain.CurrentDomain.BaseDirectory, @"Data\NWind.mdf", false);
            //XtraReportsDemos.ConnectionHelper.ApplyDataDirectory(System.IO.Path.GetDirectoryName(path));

            DataHelper.ApplicationArguments = arguments;


            //System.Globalization.CultureInfo enUs = new System.Globalization.CultureInfo("en-US");
            //System.Threading.Thread.CurrentThread.CurrentCulture = enUs;
            //System.Threading.Thread.CurrentThread.CurrentUICulture = enUs;
            DevExpress.Utils.LocalizationHelper.SetCurrentCulture(DataHelper.ApplicationArguments);
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Utils.AppearanceObject.DefaultFont = new Font("Segoe UI", 8);
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013");
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Visual Studio 2013 Light");
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2010 Black");
            SkinManager.EnableFormSkins();
            EnumProcessingHelper.RegisterEnum <TaskStatus>();


            //SplashScreenManager.ShowForm(null, typeof(ssMain), true, true, false, 1000);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            fmLogin login = new fmLogin();

            Application.Run(login);

            if (login.DialogResult == DialogResult.OK)
            {
                //DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;

                Application.Run(new frmMain());

                MySqlManage db = new MySqlManage(ConfigurationManager.ConnectionStrings["MySQL"].ConnectionString);

                string sql = string.Format("insert into amr_iqr03 values('{0}', '{1}', '1234', '{2}')", DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"), login.User, 14);
                db.InsertMariaDB(db.Connection, sql);

                db.Dispose();
            }
        }
Example #7
0
 public MainForm()
 {
     SplashScreenManager.ShowForm(this, typeof(SplashForm), true, false, false);
     InitializeComponent();
     if (!File.Exists(DefaultTaskBaseFName) || !taskBase.Load(DefaultTaskBaseFName, string.Empty))
     {
         taskBase.Save(DefaultTaskBaseFName);
     }
     gridControl1.DataSource = taskBase.Tasks;
     EditorUtils.CreateTaskStatusImageComboBox(repositoryItemImageComboBox3);
     EditorUtils.CreateFlagStatusImageComboBox(repositoryItemImageComboBox5);
     EditorUtils.InitPriorityComboBox(repositoryItemImageComboBox1);
     UpdateCurrentTask();
     Text = ProgramData.Caption;
     EnumProcessingHelper.RegisterEnum(typeof(TaskStatus));
     Thread.Sleep(1800);
     SplashScreenManager.CloseForm();
 }
Example #8
0
        static void Main(string[] arguments)
        {
            AppDomain.CurrentDomain.AssemblyResolve += OnCurrentDomainAssemblyResolve;
            WindowsFormsSettings.ApplyDemoSettings();

            DataHelper.ApplicationArguments = arguments;
            System.Globalization.CultureInfo enUs = new System.Globalization.CultureInfo("en-US");
            System.Threading.Thread.CurrentThread.CurrentCulture   = enUs;
            System.Threading.Thread.CurrentThread.CurrentUICulture = enUs;
            DevExpress.Utils.LocalizationHelper.SetCurrentCulture(DataHelper.ApplicationArguments);
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Utils.AppearanceObject.DefaultFont = new Font("Segoe UI", 8);
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2016 Colorful");
            SkinManager.EnableFormSkins();
            EnumProcessingHelper.RegisterEnum <TaskStatus>();

            SplashScreenManager.ShowForm(null, typeof(ssMain), true, true, false, 1000);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
        }
Example #9
0
 static void Main(string[] arguments)
 {
     AppHelper.WarmUp();
     AppDomain.CurrentDomain.AssemblyResolve += OnCurrentDomainAssemblyResolve;
     WindowsFormsSettings.ApplyDemoSettings();
     DataHelper.ApplicationArguments = arguments;
     System.Globalization.CultureInfo enUs = new System.Globalization.CultureInfo("en-US");
     System.Threading.Thread.CurrentThread.CurrentCulture   = enUs;
     System.Threading.Thread.CurrentThread.CurrentUICulture = enUs;
     DevExpress.Utils.LocalizationHelper.SetCurrentCulture(DataHelper.ApplicationArguments);
     DevExpress.UserSkins.BonusSkins.Register();
     DevExpress.Utils.AppearanceObject.DefaultFont = new Font("Segoe UI", 8);
     DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2019 Colorful");
     SkinManager.EnableFormSkins();
     EnumProcessingHelper.RegisterEnum <TaskStatus>();
     EnumProcessingHelper.RegisterEnum(typeof(TaskStatus), "DevExpress.ProductsDemo.Win.TaskStatus");
     SplashScreenManager.ShowSkinSplashScreen(Tutorials.ucOverviewPage.GetSVGLogoImage(), "Build Your Own Office");
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new frmMain());
 }
Example #10
0
        private void Provider()
        {
            if (serverApplication == null)
            {
                string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
                ValueManager.ValueManagerType = typeof(MultiThreadValueManager <>).GetGenericTypeDefinition();
                var serverApplication = new ServerApplication();

                serverApplication.ApplicationName = "WinCTB_CTS";
                serverApplication.Modules.Add(new WinCTB_CTSModule());
                serverApplication.DatabaseVersionMismatch         += ServerApplication_DatabaseVersionMismatch;
                serverApplication.CreateCustomObjectSpaceProvider += ServerApplication_CreateCustomObjectSpaceProvider;
                serverApplication.ConnectionString = connectionString;

                EnumProcessingHelper.RegisterEnum(typeof(CampoPipe), "CampoPipe");


                XpoTypesInfoHelper.GetXpoTypeInfoSource();
                XafTypesInfo.Instance.RegisterEntity(typeof(Contrato));
                XafTypesInfo.Instance.RegisterEntity(typeof(Contrato));
                XafTypesInfo.Instance.RegisterEntity(typeof(ReportDataV2));
                XafTypesInfo.Instance.RegisterEntity(typeof(FileData));
                XafTypesInfo.Instance.RegisterEntity(typeof(BaseObject));
                XafTypesInfo.Instance.RegisterEntity(typeof(ReportsModuleV2));
                XafTypesInfo.Instance.RegisterEntity(typeof(DashboardData));
                XafTypesInfo.Instance.RegisterEntity(typeof(OidGenerator));
                XafTypesInfo.Instance.RegisterEntity(typeof(FileAttachmentBase));

                //foreach (string parameterName in ParametersFactory.GetRegisteredParameterNames())
                //{
                //    IParameter parameter = ParametersFactory.FindParameter(parameterName);
                //    if (parameter.IsReadOnly && (CriteriaOperator.GetCustomFunction(parameter.Name) == null))
                //        CriteriaOperator.RegisterCustomFunction(new ReadOnlyParameterCustomFunctionOperator(parameter));
                //}

                serverApplication.Setup();
                serverApplication.CheckCompatibility();
                this.serverApplication = serverApplication;
            }
        }
Example #11
0
        static void Main(string[] arguments)
        {
            // TODO uncomment to test EF code first sample
            // Prerequisites: SQL Server express
            //using (var mailContext = new MailContext())
            //{
            //    var savedUser = new User {Name = "Test", Password = "******"};
            //    mailContext.Users.Add(savedUser);
            //    mailContext.SaveChanges();

            //    var retrievedUser = mailContext.Users.First();
            //    Console.WriteLine($"User: {retrievedUser.Name}");
            //}

            DataHelper.ApplicationArguments = arguments;
            DevExpress.Utils.LocalizationHelper.SetCurrentCulture(DataHelper.ApplicationArguments);
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Utils.AppearanceObject.DefaultFont = new Font("Segoe UI", 8);
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013");
            SkinManager.EnableFormSkins();
            EnumProcessingHelper.RegisterEnum <TaskStatus>();
            UnpackHelper.Unpack();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            bool accountCreated = CheckAccountExists();

            if (!accountCreated)
            {
                accountCreated = CreateAccount();
            }

            if (accountCreated)
            {
                ShowSplashScreen();
                Application.Run(new frmMain());
            }
        }
Example #12
0
 public static void RegisterEnum()
 {
     EnumProcessingHelper.RegisterEnum(typeof(WinCTB_CTS.Module.BusinessObjects.Tubulacao.JuntaSpool.CampoPipe), "CampoOuPipe");
 }