當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。