public OWLOSNodeControl(OWLOSNodeWrapper nodeWrapper) { this.nodeWrapper = nodeWrapper; if (nodeWrapper != null) { nodeWrapper.node.OnNewDriver += Node_OnNewDriver; } InitializeComponent(); parentControl = new EcosystemControl(this); nodeShadowPath.Data = nodePath.Data = HudLibrary.DrawArc(350, 350, radius, 0, 359); insideNodePath.Data = HudLibrary.DrawArc(350, 350, radius - 80, 0, 359); insideNodePath2.Data = HudLibrary.DrawArc(350, 350, radius - 120, 0, 359); freeHeapPathBack.Data = HudLibrary.DrawArc(350, 350, radius - 20, 0, freeHeapAngelLimit); DrawFreeHeap(50); WiFiRSSIDPathBack.Data = HudLibrary.DrawArc(350, 350, radius - 40, 0, WiFiRSSIDAngelLimit); DrawWiFiRSSID(-50); PowerPathBack.Data = HudLibrary.DrawArc(350, 350, radius - 40, PowerAngeStart, PowerAngelLimit + PowerAngeStart); DrawPower(25000); scriptsPath.Data = HudLibrary.DrawArc(350, 350, radius - 40, 185, 300); script1Path.Data = HudLibrary.DrawArc(350, 350, radius - 60, 190, 210); script2Path.Data = HudLibrary.DrawArc(350, 350, radius - 60, 215, 235); script3Path.Data = HudLibrary.DrawArc(350, 350, radius - 60, 240, 260); filesPath.Data = HudLibrary.DrawArc(350, 350, radius - 40, 302, 315); propertiesPath.Data = HudLibrary.DrawArc(350, 350, radius - 40, 317, 359); restFullPath.Data = HudLibrary.DrawArc(350, 350, radius - 100, 0, 40); MQTTPath.Data = HudLibrary.DrawArc(350, 350, radius - 100, 45, 85); UARTPath.Data = HudLibrary.DrawArc(350, 350, radius - 100, 90, 130); //RalationLines test /* * DoubleAnimation rotate = new DoubleAnimation * { * From = 0.0f, * To = 360.0f, * Duration = new Duration(TimeSpan.FromMilliseconds(10000)), * RepeatBehavior = RepeatBehavior.Forever, * EasingFunction = new BackEase() * //AutoReverse = true * }; * RotateTransform rotateTransform = new RotateTransform(); * this.RenderTransform = rotateTransform; * rotateTransform.BeginAnimation(RotateTransform.AngleProperty, rotate); * renderTransform.AddValueChanged(this, PositionChanged); * //nodeGrid.RenderTransform.Add */ }
public LogControl(OWLOSNodeWrapper nodeWrapper) { InitializeComponent(); parentControl = new EcosystemControl(this); this.nodeWrapper = nodeWrapper; if (nodeWrapper != null) { nodeWrapper.node.OnNewDriver += Node_NewDriver; } }
public OWLOSNode(Admin admin, OWLOSNodeWrapper wrapper) { this.admin = admin; this.wrapper = wrapper; }