当前位置: 首页>>代码示例>>C#>>正文


C# nsDataMgr.objUnit类代码示例

本文整理汇总了C#中nsDataMgr.objUnit的典型用法代码示例。如果您正苦于以下问题:C# objUnit类的具体用法?C# objUnit怎么用?C# objUnit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


objUnit类属于nsDataMgr命名空间,在下文中一共展示了objUnit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EjectorFWDCurveRefush

        private void EjectorFWDCurveRefush(objUnit obj)
        {
            int count = obj.value;
            int MaxStroke = valmoWin.dv.MldPr[234].value;
            int MaxSpeed = valmoWin.dv.MldPr[240].value;
            int[] EjectorFWDData = new int[count * 3];

            if (MaxStroke == 0 || MaxSpeed == 0)
            {
                return;
            }

            Lasal32.GetData(EjectorFWDData, (uint)valmoWin.dv.PrdPr[241].valueNew, count * 12);

            Point[] curveData_Current = new Point[count];
            Point[] curveData_Speed = new Point[count];

            for (int i = 0; i < count; i++)
            {
                double pos = EjectorFWDData[i * 3 + 2] * 1.0 / MaxStroke * 10000;
                double current = EjectorFWDData[i * 3] * 1.0 / 1000 * 10000;
                double speed = Math.Abs(EjectorFWDData[i * 3 + 1]) * 1.0 / MaxSpeed * 10000;

                curveData_Current[i] = new Point(pos, 10000 - (current + 10000) / 2);
                curveData_Speed[i] = new Point(pos, 10000 - speed);
            }

            EjectorFWDSpeedCurve.refushCurve(curveData_Speed);
            EjectorFWDCurrentCurve.refushCurve(curveData_Current);
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:30,代码来源:ejectorMapLeft.xaml.cs

示例2: upadatprg3

 private void upadatprg3(objUnit obj)
 {
     if (valmoWin.dv.MldPr[050].vDbl > 0)
     {
         prg3.Value = (int)(100 * valmoWin.dv.MldPr[094].vDbl / valmoWin.dv.MldPr[050].vDbl);
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:Mold_Lubrication.xaml.cs

示例3: handleIBTPr_008

 private void handleIBTPr_008(objUnit obj)
 {
     lightState2Ctrl5.state = ((obj.value >> 4) & 0x01) == 1;
     lightState2Ctrl6.state = ((obj.value >> 5) & 0x01) == 1;
     lightState2Ctrl7.state = ((obj.value >> 6) & 0x01) == 1;
     lightState2Ctrl8.state = ((obj.value >> 7) & 0x01) == 1;
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:iprSetting.xaml.cs

示例4: dvBase

        public dvBase()
        {
            try
            {
                objHeart = dataBase[0];

                objUnit.getObjHandle = getObj;
                for (int i = 0; i < dataBase.length; i++)
                {
                    if (dataBase[i] != null)
                    {
                        int num = Int32.Parse(dataBase[i].serialNum.Substring(3, dataBase[i].serialNum.Length - 3));
                        string ser = dataBase[i].serialNum.Substring(0, 3);
                        switch (ser)
                        {
                            case "Abt":
                                AlmPr[num] = dataBase[i];
                                break;
                            case "Key":
                                KeyPr[num] = dataBase[i];
                                break;
                            case "Ipr":
                                IprPr[num] = dataBase[i];
                                break;
                            case "Sys":
                                SysPr[num] = dataBase[i];
                                break;
                            case "Mld":
                                MldPr[num] = dataBase[i];
                                break;
                            case "Inj":
                                InjPr[num] = dataBase[i];
                                break;
                            case "Tmp":
                                TmpPr[num] = dataBase[i];
                                break;
                            case "Prd":
                                PrdPr[num] = dataBase[i];
                                break;
                            case "IOS":
                                IOSPr[num] = dataBase[i];
                                break;
                            case "IOF":
                                IOFPr[num] = dataBase[i];
                                break;
                            case "IBT":
                                IBTPr[num] = dataBase[i];
                                break;
                        }
                        //vm.debug(dataBase[i].serialNum);
                    }
                }
                objUnit.dv_base = this;
                almInit();
            }
            catch (Exception ex)
            {
                vm.perror("[dvBase] " + ex.ToString());
            }
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:60,代码来源:dvBase.cs

示例5: handleIBTPr_004

 private void handleIBTPr_004(objUnit obj)
 {
     lightState2Ctrl1.state = ((obj.value >> 4) & 0x01) == 1;
     lightState2Ctrl2.state = ((obj.value >> 5) & 0x01) == 1;
     lightState2Ctrl3.state = ((obj.value >> 6) & 0x01) == 1;
     lightState2Ctrl4.state = ((obj.value >> 7) & 0x01) == 1;
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:iprSetting.xaml.cs

示例6: refreshState

        private void refreshState(objUnit obj)
        {
            if (_bitNr == -1)
            {
                if (obj.value == 1)
                {
                    _state = true;
                }
                else
                {
                    _state = false;
                }
            }
            else
            {
                if (((obj.value >> _bitNr) & 0x01) == 1)
                {
                    _state = true;
                }
                else
                {
                    _state = false;
                }
            }

            tbState1.SelectedIndex = (_state == true) ? 1 : 0;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:27,代码来源:OStateLED.xaml.cs

示例7: upadatprg2

 private void upadatprg2(objUnit obj)
 {
     if (valmoWin.dv.MldPr[058].vDbl > 0)
     {
         prg2.Value = (int)(100 * valmoWin.dv.MldPr[099].vDbl / valmoWin.dv.MldPr[058].vDbl);
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:Mold_Lubrication.xaml.cs

示例8: refush2

 private void refush2(objUnit obj)
 {
     double totalTime = valmoWin.dv.SysPr[393].vDbl + obj.vDbl;
     if (totalTime != 0)
     {
         erMaintain2Cr.rateValue = valmoWin.dv.SysPr[393].vDbl / totalTime * 100;
         lbMaintain2Cr.Content = (valmoWin.dv.SysPr[393].vDbl / totalTime * 100).ToString("0.0");
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:9,代码来源:Maintain.xaml.cs

示例9: handleTmpPr_11

 private void handleTmpPr_11(objUnit obj)
 {
     if (valmoWin.dv.TmpPr[11].value >= valmoWin.dv.TmpPr[10].value - valmoWin.dv.TmpPr[14].value && obj.value < valmoWin.dv.TmpPr[10].value + valmoWin.dv.TmpPr[13].value)
     {
         processTmp011.fBackground = new SolidColorBrush(Color.FromRgb(78, 195, 0));
     }
     else
     {
         processTmp011.fBackground = new SolidColorBrush(Color.FromRgb(255,102,0));
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:11,代码来源:BarrelHeatingCtrl.xaml.cs

示例10: RefushLubType

 private void RefushLubType(objUnit obj)
 {
     if (obj.value == 0)
     {
         lbLubType.SetResourceReference(Label.ContentProperty, "CB_LubPumpMode_0");
     }
     else
     {
         lbLubType.SetResourceReference(Label.ContentProperty, "CB_LubPumpMode_1");
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:11,代码来源:Mold_Lubrication.xaml.cs

示例11: handleIpr65

        private void handleIpr65(objUnit obj)
        {
            switch65_0.stateOn = ((obj.value >> 0) & 0x01) == 1;
            switch65_1.stateOn = ((obj.value >> 1) & 0x01) == 1;
            switch65_2.stateOn = ((obj.value >> 2) & 0x01) == 1;
            switch65_3.stateOn = ((obj.value >> 3) & 0x01) == 1;

            switch65_12.stateOn = ((obj.value >> 12) & 0x01) == 1;
            switch65_13.stateOn = ((obj.value >> 13) & 0x01) == 1;
            switch65_14.stateOn = ((obj.value >> 14) & 0x01) == 1;
            switch65_15.stateOn = ((obj.value >> 15) & 0x01) == 1;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:12,代码来源:iprSetting.xaml.cs

示例12: refushState

        private void refushState(objUnit obj)
        {
            if (obj.value == 1)
            {
                _state = true;
            }
            else
            {
                _state = false;
            }

            tbOnline.SelectedIndex = (_state == true) ? 1 : 0;
            tbOnline2.SelectedIndex = (_state == true) ? 1 : 0;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:14,代码来源:motroOnlineCtrl.xaml.cs

示例13: btnStateFunc

 public void btnStateFunc(objUnit obj)
 {
     if (obj.value == 0)
     {
         cvsEmStopActive.Visibility = Visibility.Hidden;
         emStopActiveBg.Visibility = Visibility.Hidden;
         Canvas.SetLeft(cvsEmStopActive, 0);
     }
     else
     {
         cvsEmStopActive.Visibility = Visibility.Visible;
         emStopActiveBg.Visibility = Visibility.Visible;
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:14,代码来源:emStopBtn.xaml.cs

示例14: handleState

 private void handleState(objUnit obj)
 {
     switch (obj.value)
     {
         case 0:
             BtnFore.Visibility = Visibility.Visible;
             BtnForeActive.Visibility = Visibility.Hidden;
             break;
         case 1:
             BtnFore.Visibility = Visibility.Hidden;
             BtnForeActive.Visibility = Visibility.Visible;
             break;
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:14,代码来源:motorOnBtn.xaml.cs

示例15: refushState

        private void refushState(objUnit obj)
        {
            lbVoltage.Content = obj.vDblStr;

            if (obj.vDbl > 100)
            {
                _state = true;
            }
            else
            {
                _state = false;
            }

            tbState2.SelectedIndex = (_state == true) ? 1 : 0;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:15,代码来源:motorVoltageCtrl.xaml.cs


注:本文中的nsDataMgr.objUnit类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。