public UpdateCompassLabel ( string newText ) : void | ||
newText | string | |
Результат | void |
public void UpdateCompass(int heading) { if (compassView != null && CompassIsOn) { compassView.UpdateCompassLabel(BikeLocation.HeadingToString(heading)); } }
public void LoadAndShowCompassView() { if (compassView == null) { Util.Log("creating compass view"); compassView = new CompassView(); var frame = compassView.View.Frame; frame.X = (160 - (compassView.View.Frame.Width / 2)); frame.Y = (320 - (compassView.View.Frame.Height / 2)); compassView.View.Frame = frame; compassView.UpdateCompassLabel("--"); ParentViewController.View.AddSubview(compassView.View); ParentViewController.View.BringSubviewToFront(compassView.View); } }
public void LoadAndShowCompassView() { if (compassView == null) { Util.Log("creating compass view"); compassView = new CompassView(); var frame = compassView.View.Frame; frame.X = (160 - (compassView.View.Frame.Width / 2)); frame.Y = (320 - (compassView.View.Frame.Height / 2)); compassView.View.Frame = frame; compassView.UpdateCompassLabel("--"); ParentViewController.View.AddSubview(compassView.View); ParentViewController.View.BringSubviewToFront(compassView.View); } }