Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Notify( JArray notifications )
- {
- foreach ( JObject obj in notifications )
- {
- string type = (string)obj["type"];
- string title = (string)obj["title"];
- string content = (string)obj["content"];
- if ( type == "alert" && content != null )
- {
- MessageBox.Show( content, title, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1 );
- }
- }
- }
Add Comment
Please, Sign In to add comment