Beispiel #1
0
        public Hs1xxPage()
        {
            DeviceTopic topic = (Shell.Current as AppShell).CurrentTopic as DeviceTopic;

            if (!string.IsNullOrEmpty(TopicId))
            {
                Topic item;
                if (Topics.TryGetTopic(TopicId, out item))
                {
                    topic = item as DeviceTopic;
                }
            }
            InitializeComponent();
            Title        = topic.Name;
            _DeviceTopic = topic;
        }
Beispiel #2
0
 public Hs1xxPage(DeviceTopic topic)
 {
     InitializeComponent();
     Title        = topic.Name;
     _DeviceTopic = topic;
 }