private void HandleItemAdded(ViewChangingEventArgs e)
 {
     foreach (var changedItem in e.ChangedItems)
     {
         this.View.AnimatingService.ScheduleItemForAnimation(changedItem);
     }
 }
 private void FrameOnViewChanging(object sender, ViewChangingEventArgs e){
     var detailView = e.View as DetailView;
     if (detailView != null){
         detailView.ControlsCreated += ViewOnControlsCreated;
         detailView.ObjectSpace.Reloaded += (o, args) => UpdateEditableActions(detailView);
     }
 }
        private void OnDataProviderViewChanging(object sender, ViewChangingEventArgs e)
        {
            if (e.Action == CollectionChange.ItemRemoved)
            {
                if (((this.View.ItemAnimationMode & ItemAnimationMode.PlayOnRemove) == ItemAnimationMode.PlayOnRemove) && this.View.ItemRemovedAnimation != null)
                {
                    this.layoutController.HandleItemRemoved(e.ChangedItems);
                }
                else
                {
                    this.localDataProvider.DataView.ProcessPendingCollectionChange();
                }
            }

            if (e.Action == CollectionChange.ItemInserted && ((this.View.ItemAnimationMode & ItemAnimationMode.PlayOnAdd) == ItemAnimationMode.PlayOnAdd) && this.View.ItemAddedAnimation != null)
            {
                this.HandleItemAdded(e);
            }

            if (e.Action == CollectionChange.Reset)
            {
                if ((this.View.ItemAnimationMode & ItemAnimationMode.PlayOnSourceReset) == ItemAnimationMode.PlayOnSourceReset && this.View.ItemRemovedAnimation != null)
                {
                    this.layoutController.HandleSourceResetAnimations();
                }
                else
                {
                    this.localDataProvider.DataView.ProcessPendingCollectionChange();
                }
            }

            this.View.SelectionService.OnDataChanged(e.Action, e.ChangedItems);
        }
Beispiel #4
0
 void radCalendar1_ViewChanging(object sender, ViewChangingEventArgs e)
 {
     AddEventRoot("ViewChanging");
     AddTextToListBox(string.Format("    Changing to {0} - {1}",
                                    e.View.ViewStartDate.ToShortDateString(),
                                    e.View.ViewEndDate.ToShortDateString()));
 }
Beispiel #5
0
 void ValueOnViewChanging(object sender, ViewChangingEventArgs viewChangingEventArgs) {
     var view = viewChangingEventArgs.View;
     if (view!=null) {
         IsNew = view.ObjectSpace.IsNewObject(view.CurrentObject);
         view.CurrentObjectChanged -= ViewOnCurrentObjectChanged;
         view.CurrentObjectChanged += ViewOnCurrentObjectChanged;
     }
 }
 void FrameOnViewChanging(object sender, ViewChangingEventArgs viewChangingEventArgs) {
     if (viewChangingEventArgs.View != null) {
         var viewEditMode = ((IModelViewEditMode) viewChangingEventArgs.View.Model).ViewEditMode;
         if (viewEditMode.HasValue&&viewChangingEventArgs.View is ListView) {
             var showViewStrategy = ((ShowViewStrategy)Application.ShowViewStrategy);
             showViewStrategy.CollectionsEditMode = viewEditMode.Value;
         }
     }
 }
Beispiel #7
0
        void ValueOnViewChanging(object sender, ViewChangingEventArgs viewChangingEventArgs)
        {
            var view = viewChangingEventArgs.View;

            if (view != null)
            {
                IsNew = view.ObjectSpace.IsNewObject(view.CurrentObject);
                view.CurrentObjectChanged -= ViewOnCurrentObjectChanged;
                view.CurrentObjectChanged += ViewOnCurrentObjectChanged;
            }
        }
Beispiel #8
0
 void FrameOnViewChanging(object sender, ViewChangingEventArgs viewChangingEventArgs)
 {
     if (!(viewChangingEventArgs.View is DashboardView) && viewChangingEventArgs.View != null)
     {
         var viewEditMode = ((IModelViewEditMode)viewChangingEventArgs.View.Model).ViewEditMode;
         if (viewEditMode.HasValue && viewChangingEventArgs.View is ListView)
         {
             var showViewStrategy = ((ShowViewStrategy)Application.ShowViewStrategy);
             showViewStrategy.CollectionsEditMode = viewEditMode.Value;
         }
     }
 }
Beispiel #9
0
 void FrameOnViewChanging(object sender, ViewChangingEventArgs args)
 {
     _logicRuleExecutor.InvertAndExecute(args.View, ExecutionContext.ViewChanging, args, View);
 }
Beispiel #10
0
 void FrameOnViewChanging(object sender, ViewChangingEventArgs args)
 {
     ForceExecutioning(args.View, ExecutionContext.ViewChanging);
 }
 void FrameOnViewChanging(object sender, ViewChangingEventArgs args) {
     _logicRuleExecutor.InvertAndExecute(args.View, ExecutionContext.ViewChanging, args,View);
 }
 private void window_ViewChanging(object sender, ViewChangingEventArgs e)
 {
     if (Window.View != null)
     {
         if (Window.View is DetailView)
         {
             DeleteLastItemIfItNeeds();
             Window.View.CurrentObjectChanged -= new EventHandler(view_CurrentObjectChanged);
         }
         Window.View.Closed -= new EventHandler(view_Closed);
         if (objectSpace != null)
         {
             objectSpace.Committing -= new EventHandler<CancelEventArgs>(objectSpace_Committing);
             objectSpace.Committed -= new EventHandler(objectSpace_Committed);
             objectSpace.Disposed -= new EventHandler(objectSpace_Disposed);
         }
         UpdateShortcutScrollPosition();
     }
 }
Beispiel #13
0
 void LogonWindow_ViewChanging(object sender, ViewChangingEventArgs e)
 {
     LogonWindow.ViewChanging -= new EventHandler <ViewChangingEventArgs>(LogonWindow_ViewChanging);
     e.DisposeOldView          = false;
 }
 void LogonWindow_ViewChanging(object sender, ViewChangingEventArgs e)
 {
     Program.winApplication.LogonWindow.ViewChanging -= new EventHandler <ViewChangingEventArgs>(LogonWindow_ViewChanging);
     e.DisposeOldView = false;
 }
Beispiel #15
0
 private void Frame_ViewChanging(object sender, ViewChangingEventArgs e)
 {
     _previousView = Frame.View;
 }
 void Frame_ViewChanging(object sender, ViewChangingEventArgs e)
 {
     //throw new NotImplementedException();
     newview = e.View as ObjectView;
 }
 private void Frame_ViewChanging(object sender, ViewChangingEventArgs e) {
     _previousView = Frame.View;
 }