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); }
void ReleaseDesignerOutlets() { if (Grid != null) { Grid.Dispose(); Grid = null; } if (SelectionLabel != null) { SelectionLabel.Dispose(); SelectionLabel = null; } if (SelectionModeField != null) { SelectionModeField.Dispose(); SelectionModeField = null; } }
void ReleaseDesignerOutlets() { if (SelectionLabelTrailingConstraint != null) { SelectionLabelTrailingConstraint.Dispose(); SelectionLabelTrailingConstraint = null; } if (SelectionlabelLeadingConstraint != null) { SelectionlabelLeadingConstraint.Dispose(); SelectionlabelLeadingConstraint = null; } if (ErrorTextView != null) { ErrorTextView.Dispose(); ErrorTextView = null; } if (OkButton != null) { OkButton.Dispose(); OkButton = null; } if (OkButtonBottomConstraint != null) { OkButtonBottomConstraint.Dispose(); OkButtonBottomConstraint = null; } if (PageSubtitleText != null) { PageSubtitleText.Dispose(); PageSubtitleText = null; } if (PageSubtitleTopConstraint != null) { PageSubtitleTopConstraint.Dispose(); PageSubtitleTopConstraint = null; } if (PageTitleLabel != null) { PageTitleLabel.Dispose(); PageTitleLabel = null; } if (PageTitleTopConstraint != null) { PageTitleTopConstraint.Dispose(); PageTitleTopConstraint = null; } if (SearchContainer != null) { SearchContainer.Dispose(); SearchContainer = null; } if (SearchResultTableView != null) { SearchResultTableView.Dispose(); SearchResultTableView = null; } if (SearchText != null) { SearchText.Dispose(); SearchText = null; } if (SelectionLabel != null) { SelectionLabel.Dispose(); SelectionLabel = null; } if (SelectionLabelTopConstraint != null) { SelectionLabelTopConstraint.Dispose(); SelectionLabelTopConstraint = null; } if (TableViewBottomConstraint != null) { TableViewBottomConstraint.Dispose(); TableViewBottomConstraint = null; } }