void Skin_Initialized(object sender, EventArgs e)
 {
     uxSettings = FindName("uxSettings") as Button;
     uxLeftTurn = FindName("uxLeftTurn") as Blinker;
     uxRightTurn = FindName("uxRightTurn") as Blinker;
     uxLowFuel = FindName("uxLowFuel") as FrameworkElement;
     uxHazard = FindName("uxHazard") as FrameworkElement;
     uxMalfunction = FindName("uxMalfunction") as FrameworkElement;
     uxOpenDoor = FindName("uxOpenDoor") as FrameworkElement;
     uxMessage = FindName("uxMessage") as TextBlock;
     uxMessageMarquee = FindName("uxMessageMarquee") as Marquee;
     uxOdometer = FindName("uxOdometer") as TextBlock;
     uxMPG = FindName("uxMPG") as TextBlock;
     uxMPH = FindName("uxMPH") as Slider;
     uxRPM = FindName("uxRPM") as Slider;
     uxFuel = FindName("uxFuel") as Slider;
     uxTemp = FindName("uxTemp") as Slider;
     uxOil = FindName("uxOil") as Slider;
     uxBattery = FindName("uxBattery") as Slider;
     uxMPHLabel = FindName("uxMPHLabel") as TextBlock;
     uxRPMLabel = FindName("uxRPMLabel") as TextBlock;
 }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((Coding4Fun.Obd.InstrumentCluster.Controls.SkinMetro.Skin)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.uxLeftTurn = ((Coding4Fun.Obd.InstrumentCluster.Controls.Blinker)(target));
                return;

            case 4:
                this.uxRightTurn = ((Coding4Fun.Obd.InstrumentCluster.Controls.Blinker)(target));
                return;

            case 5:
                this.uxSettings = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.uxOpenDoor = ((System.Windows.Shapes.Path)(target));
                return;

            case 7:
                this.uxMalfunction = ((System.Windows.Shapes.Path)(target));
                return;

            case 8:
                this.uxOdometer = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.uxMPG = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.uxMPH = ((System.Windows.Controls.Slider)(target));
                return;

            case 11:
                this.uxRPM = ((System.Windows.Controls.Slider)(target));
                return;

            case 12:
                this.uxFuel = ((System.Windows.Controls.Slider)(target));
                return;

            case 13:
                this.uxTemp = ((System.Windows.Controls.Slider)(target));
                return;

            case 14:
                this.uxMessage = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((Coding4Fun.Obd.InstrumentCluster.Controls.Skin1967.Skin)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.uxLowFuel = ((System.Windows.Controls.Border)(target));
     return;
     case 4:
     this.uxHazard = ((System.Windows.Controls.Border)(target));
     return;
     case 5:
     this.uxMalfunction = ((System.Windows.Controls.Border)(target));
     return;
     case 6:
     this.uxRPM = ((System.Windows.Controls.Slider)(target));
     return;
     case 7:
     this.uxMPH = ((System.Windows.Controls.Slider)(target));
     return;
     case 8:
     this.uxFuel = ((System.Windows.Controls.Slider)(target));
     return;
     case 9:
     this.uxTemp = ((System.Windows.Controls.Slider)(target));
     return;
     case 10:
     this.uxOil = ((System.Windows.Controls.Slider)(target));
     return;
     case 11:
     this.uxSettings = ((System.Windows.Controls.Button)(target));
     return;
     case 12:
     this.uxLeftTurn = ((Coding4Fun.Obd.InstrumentCluster.Controls.Blinker)(target));
     return;
     case 13:
     this.uxRightTurn = ((Coding4Fun.Obd.InstrumentCluster.Controls.Blinker)(target));
     return;
     case 14:
     this.uxMessageMarquee = ((Coding4Fun.Obd.InstrumentCluster.Controls.Skin1967.Marquee)(target));
     return;
     case 15:
     this.uxOdometer = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.uxMPG = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }