Beispiel #1
0
        public DI_N2Graph(ValueItemCat vCat, Label lblProto)
        {
            LabelID = LItem;
            _label  = new L_Text(lblProto)
            {
                Text = Short
            }; this.AddItem(_label);
            var item = VItem.E1_N2_ANI;

            _scale1 = new A_Scale( )
            {
                Minimum = 0, Maximum = 110, AlertValue = 101, ItemForeColor_Alert = cAlert, ItemForeColor = c*K
            };
            this.AddItem(_scale1); vCat.AddLbl(item, _scale1);

            item    = VItem.E2_N2_ANI;
            _scale2 = new A_TwinScale( )
            {
                Visible = false, Minimum = 0, Maximum = 110, AlertValue = 101, ItemForeColor_Alert = cAlert, ItemForeColor = c*K, ItemForeColor_LScale = c*K
            };
            this.AddItem(_scale2); vCat.AddLbl(item, _scale2);

            // add 2 more values
            //this.TwoRows = true;
            item    = VItem.E3_N2_ANI;
            _scale3 = new A_Scale( )
            {
                Visible = false, Minimum = 0, Maximum = 110, AlertValue = 101, ItemForeColor_Alert = cAlert, ItemForeColor = c*K
            };
            this.AddItem(_scale3); vCat.AddLbl(item, _scale3);

            item    = VItem.E4_N2_ANI;
            _scale4 = new A_TwinScale( )
            {
                Visible = false, Minimum = 0, Maximum = 110, AlertValue = 101, ItemForeColor_Alert = cAlert, ItemForeColor = c*K, ItemForeColor_LScale = c*K
            };
            this.AddItem(_scale4); vCat.AddLbl(item, _scale4);

            m_observerID = SC.SimConnectClient.Instance.HudBarModule.AddObserver(Short, OnDataArrival);
        }
Beispiel #2
0
        public DI_FuelGraph(ValueItemCat vCat, Label lblProto)
        {
            LabelID = LItem;
            var item = VItem.FUEL_ANI_C;

            _label = new L_Text(lblProto)
            {
                Text = Short
            }; this.AddItem(_label);
            _scaleC = new A_Scale( )
            {
                Minimum = 0, Maximum = 60000, AlertValue = 1, ItemForeColor_Alert = cWarn
            };                                                                                                // limits are set while updating
            this.AddItem(_scaleC); vCat.AddLbl(item, _scaleC);

            item     = VItem.FUEL_ANI_LR;
            _scaleLR = new A_TwinScale( )
            {
                Minimum = 0, Maximum = 60000, AlertValue = 1, ItemForeColor_Alert = cWarn, BorderStyle = BorderStyle.FixedSingle
            };
            this.AddItem(_scaleLR); vCat.AddLbl(item, _scaleLR);

            m_observerID = SC.SimConnectClient.Instance.HudBarModule.AddObserver(Short, OnDataArrival);
        }