Ejemplo n.º 1
0
 public static void LoggedInUI(Hub PanoramaControl, HubSection PanoramaLogin, HubSection PanoramaAccount)
 {
     if (PanoramaControl.Sections.Contains(PanoramaLogin))
     {
        // AccountFunctions.logMsg("removing login screen");
         PanoramaControl.Sections.Remove(PanoramaLogin);
     }
     if (!PanoramaControl.Sections.Contains(PanoramaAccount))
     {
       //  AccountFunctions.logMsg("adding account screen");
         PanoramaControl.Sections.Insert(PanoramaControl.Sections.Count, PanoramaAccount);
     }
 }
Ejemplo n.º 2
0
            public HubListMonitor(Hub hub, IList source)
            {
                if (hub == null) throw new ArgumentNullException("hub");
                if (source == null) throw new ArgumentNullException("source");

                _hub = hub;
                _source = source;

                _bindable = source as INotifyCollectionChanged;
                if (_bindable != null)
                    _bindable.CollectionChanged += OnCollectionChanged;

                _hub.SectionsInViewChanged += OnSectionsInViewChanged;
            }
 public HubEvents(Hub This)
     : base(This)
 {
     this.This = This;
 }