// Constructor public MainPage() { GaugeRenderer.Init(); InitializeComponent(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new Gauges101.App()); }
// Constructor public MainPage() { FlexGridRenderer.Init(); GaugeRenderer.Init(); CoreRenderer.Init(); InitializeComponent(); SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape; global::Xamarin.Forms.Forms.Init(); LoadApplication(new FlexGrid101.App()); }
protected override void InitValue() { gauge_ = Object.GetComponentInChildren <GaugeRenderer>(); uigauge_ = Object.GetComponentInChildren <UIGaugeRenderer>(); if (initialValue_ != null) { UpdateAnimValue(); return; } if (gauge_ != null) { switch (Param) { case ParamType.GaugeLength: initialValue_ = (float)gauge_.Length; break; case ParamType.GaugeRate: initialValue_ = (float)gauge_.Rate; break; case ParamType.GaugeWidth: initialValue_ = (float)gauge_.Width; break; } } else if (uigauge_ != null) { switch (Param) { case ParamType.GaugeLength: initialValue_ = (float)uigauge_.Length; break; case ParamType.GaugeRate: initialValue_ = (float)uigauge_.Rate; break; case ParamType.GaugeWidth: initialValue_ = (float)uigauge_.Width; break; } } }
private void InitSprites() { m_spriteList = new SpriteList(this); GaugeRenderer = new GaugeRenderer(P1_Active, P1_Character); }