Beispiel #1
0
 void ApplicationOnViewShowing(object sender, ViewShowingEventArgs viewShowingEventArgs)
 {
     if (Application != null)
     {
         ForceExecutioning(viewShowingEventArgs.View, ExecutionContext.ViewShowing);
     }
 }
 void Application_ViewShowing(object sender, ViewShowingEventArgs e)
 {
     if (e.SourceFrame != null && e.SourceFrame.View != null && e.SourceFrame.View.Id == "Party_PhoneNumbers_ListView")
     {
         DetailView targetView = (DetailView)e.View;
         ListView   sourceView = (ListView)e.SourceFrame.View;
         //...
     }
 }
 private void Application_ViewShowing(object sender, ViewShowingEventArgs e) {
     if ((e.TargetFrame is Window) && (e.SourceFrame == Frame)) {
         if ((Frame.View is ObjectView)
                 && (e.View is DetailView)
                 && (Link != null) && (Link.ListView != null) && !(Frame.View.ObjectTypeInfo.IsAssignableFrom(e.View.ObjectTypeInfo))) {
             e.View.Tag = Link;
             e.View.Disposing+=ViewOnDisposing;
         }
     }
 }
Beispiel #4
0
 private void Application_ViewShowing(object sender, ViewShowingEventArgs e)
 {
     if ((e.TargetFrame is Window) && (e.SourceFrame == Frame))
     {
         if ((Frame.View is ObjectView) &&
             (e.View is DetailView) &&
             (Link != null) && (Link.ListView != null) && !(Frame.View.ObjectTypeInfo.IsAssignableFrom(e.View.ObjectTypeInfo)))
         {
             e.View.Tag        = Link;
             e.View.Disposing += ViewOnDisposing;
         }
     }
 }
Beispiel #5
0
 private void Application_ViewShowing(object sender, ViewShowingEventArgs e)
 {
     Application.ViewShowing -= Application_ViewShowing;
     if (e.View != null && e.View.Id == "AssocicationInfo_DetailView")
     {
         var associcationInfo = (AssocicationInfo)e.View.CurrentObject;
         if (e.View.ObjectSpace.IsNewObject(associcationInfo))
         {
             if (associcationInfo.Properties.Count < 1)
             {
                 associcationInfo.Properties.Add(e.View.ObjectSpace.GetObject(ViewCurrentObject));
             }
             //shownAddress.Street = ViewCurrentObject.DefaultStreet;
         }
     }
 }
Beispiel #6
0
 void ApplicationOnViewShowing(object sender, ViewShowingEventArgs viewShowingEventArgs)
 {
     _logicRuleExecutor.InvertAndExecute(viewShowingEventArgs.View, ExecutionContext.ViewShowing, viewShowingEventArgs, View);
 }
 void ApplicationOnViewShowing(object sender, ViewShowingEventArgs viewShowingEventArgs) {
     _logicRuleExecutor.InvertAndExecute(viewShowingEventArgs.View, ExecutionContext.ViewShowing,viewShowingEventArgs,View);
 }