partial void OnButtonPress(WatchKit.WKInterfaceButton sender) { bpmModel.RecordTap(); var bpm = bpmModel.AveBPM; var msg = String.Format("{0}", bpm); bpmOutputLabel.SetText(msg); // WKInterfaceController.OpenParentApplication (new NSDictionary (), (replyInfo, error) => { // if(error != null) { // Console.WriteLine (error); // return; // } // Console.WriteLine ("parent app responded"); // // do something with replyInfo[] dictionary // var msg = String.Format("{0}", replyInfo["bpm"]); // bpmOutputLabel.SetText(msg); // }); }
void ReleaseDesignerOutlets() { if (EnergyLabel != null) { EnergyLabel.Dispose(); EnergyLabel = null; } if (HeartRateLabel != null) { HeartRateLabel.Dispose(); HeartRateLabel = null; } if (ToggleWorkoutButton != null) { ToggleWorkoutButton.Dispose(); ToggleWorkoutButton = null; } }