Exemple #1
0
        protected void OnNavigating(Entity entity)
        {
            if (!Navigate)
            {
                return;
            }

            if (this.Navigating == null)
            {
                Navigator.NavigateUntyped(entity);
            }
            else
            {
                this.Navigating(entity);
            }
        }
Exemple #2
0
        protected void _OnNavigating(object entity)
        {
            if (Navigating != null)
            {
                Navigating(entity);
            }
            else
            {
                var options = new NavigateOptions();

                bool isReadOnly = (ReadonlyEntity ?? Common.GetIsReadOnly(this));
                if (isReadOnly)
                {
                    options.ReadOnly = isReadOnly;
                }

                Navigator.NavigateUntyped(entity, options);
            }
        }
 private void btView_Click(object sender, RoutedEventArgs e)
 {
     Navigator.NavigateUntyped(this.Entity);
 }