Last active
December 2, 2015 10:52
-
-
Save robinmanuelthiel/1061a001e4649cd3b9fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override async void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
base.OnNavigatedTo(e); | |
if (!string.IsNullOrEmpty(e.Parameter as string)) | |
{ | |
// Check if all paramters for accessing the light are set | |
if (App.HomeMatic != null && App.SelectedLightId != 0) | |
{ | |
var args = ((string)e.Parameter).Split('|'); | |
if (args[1] == "on") | |
// Switch light on | |
else | |
// Switch light off | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment