Ejemplo n.º 1
0
        void application_LoggedOn(object sender, LogonEventArgs e)
        {
            NotificationsModule          notificationsModule   = Application.Modules.FindModule <NotificationsModule>();
            DefaultNotificationsProvider notificationsProvider = notificationsModule.DefaultNotificationsProvider;

            notificationsProvider.CustomizeNotificationCollectionCriteria += notificationsProvider_CustomizeNotificationCollectionCriteria;
        }
Ejemplo n.º 2
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     if (InterfaceBuilder.RuntimeMode)
     {
         _notificationsModule = Application.FindModule <NotificationsModule>();
         _notificationsModule.NotificationsRefreshInterval = TimeSpan.FromSeconds(5);
     }
 }
Ejemplo n.º 3
0
        //
        protected override void OnActivated()
        {
            base.OnActivated();
            // Perform various tasks depending on the target View.
            ObjectSpace.ObjectSaved  += ObjectSpace_ObjectSaved;
            ObjectSpace.ObjectSaving += ObjectSpace_ObjectSaving;

            module = Application.Modules.FindModule <NotificationsModule>();
        }
Ejemplo n.º 4
0
        protected void Session_Start(Object sender, EventArgs e)
        {
            Tracing.Initialize();
            FeatureCenterAspNetApplication application = new FeatureCenterAspNetApplication();

            WebApplication.SetInstance(Session, application);

            NotificationsModule notificationsModule = application.Modules.FindModule <NotificationsModule>();

            notificationsModule.NotificationsRefreshInterval = TimeSpan.FromMinutes(1);

            DevExpress.ExpressApp.ScriptRecorder.ScriptRecorderControllerBase.ScriptRecorderEnabled = true;
            if (System.Diagnostics.Debugger.IsAttached && WebApplication.Instance.CheckCompatibilityType == CheckCompatibilityType.DatabaseSchema)
            {
                WebApplication.Instance.DatabaseUpdateMode = DatabaseUpdateMode.UpdateDatabaseAlways;
            }
            application.Setup();
            application.Start();
        }
Ejemplo n.º 5
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     if (InterfaceBuilder.RuntimeMode)
     {
         _notificationsModule = Application.FindModule <NotificationsModule>();
         _notificationsModule.NotificationsRefreshInterval = TimeSpan.FromSeconds(5);
         Application.WhenMasterDetailDashboardViewItems(typeof(ExcelColumnMap)).WithLatestFrom(Application.WhenWindowCreated()
                                                                                               .ToController <ExcelImportDetailViewController>()
                                                                                               .SelectMany(controller => controller.MapAction.WhenExecuted().Select(tuple => tuple)),
                                                                                               (tuple, valueTuple) => {
             var criteriaOperator =
                 tuple.listViewItem.InnerView.ObjectSpace.GetCriteriaOperator <ExcelColumnMap>(map =>
                                                                                               map.ExcelImport.Oid == ((ExcelImportDetailViewController)valueTuple.e.Action.Controller).ExcelImport.Oid);
             ((ListView)tuple.listViewItem.InnerView).CollectionSource.Criteria[GetType().Name] = criteriaOperator;
             return(Unit.Default);
         })
         .Subscribe();
     }
 }
Ejemplo n.º 6
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     if (InterfaceBuilder.RuntimeMode)
     {
         _notificationsModule = Application.FindModule <NotificationsModule>();
         _notificationsModule.NotificationsRefreshInterval = TimeSpan.FromSeconds(5);
         var excelImportDetailView = Application.WhenDetailViewCreated().ToDetailView()
                                     .When(typeof(ExcelImport));
         Application.WhenMasterDetailDashboardViewItems().CombineLatest(excelImportDetailView, (tuple, view) =>
                                                                        (tuple.listViewItem, excelImport: (ExcelImport)view.CurrentObject))
         .Select(_ => {
             var listView         = ((ListView)_.listViewItem.InnerView);
             var criteriaOperator = listView.ObjectSpace.GetCriteriaOperator <ExcelColumnMap>(map => map.ExcelImport.Oid == _.excelImport.Oid);
             listView.CollectionSource.Criteria[GetType().Name] = criteriaOperator;
             return(Unit.Default);
         })
         .Subscribe();
     }
 }