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; }
public Hs1xxPage(DeviceTopic topic) { InitializeComponent(); Title = topic.Name; _DeviceTopic = topic; }