Exemplo n.º 1
0
        void EntidadSistemaWidget_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue is Entity ident)
            {
                var isolation = ident.Isolation();

                if (isolation == null)
                {
                    this.Visibility = System.Windows.Visibility.Collapsed;
                }
                else
                {
                    if (IsolationEntity.Default == null && !IsolationEntity.Default.Is(isolation))
                    {
                        ForceShow?.Invoke();
                    }

                    img.Source = IsolationClient.GetIsolationIcon(isolation);

                    tb.Text = img.Source != null ? null :
                              isolation.ToString();
                }
            }
        }
Exemplo n.º 2
0
 public static void AsserIsStarted()
 {
     Navigator.Manager.AssertDefined(ReflectionTools.GetMethodInfo(() => IsolationClient.Start(null)));
 }