public override void WillActivate() { // This method is called when the watch view controller is about to be visible to the user. Console.WriteLine("{0} will activate", this); SelectionLabel.SetText(wormHole.MessageWithIdentifier <string>(ButtonMessage.MessageType)); }
public override void Awake(NSObject context) { base.Awake(context); wormHole = new Wormhole("group.com.clancey.wormhole", "messageDir"); wormHole.ListenForMessage <ButtonMessage> (ButtonMessage.MessageType, (message) => { SelectionLabel.SetText(message.Id.ToString()); }); // Configure interface objects here. Console.WriteLine("{0} awake with context", this); }