private void OnSectionNumSet()
        {
            var dlg = new DataInputDialog(_fanuc, _fanuc.CurPmcBom.DJP_SectionNum, _fanuc.CurLimitBom.DJP_SectionNum, "输入合模曲线段数");

            dlg.ShowDialog();

            _fanuc.AutoSetDieClosingPara();
        }
        private void OnSpeed_BottomDeadCentre()
        {
            var dlg = new DataInputDialog(_fanuc, _fanuc.CurPmcBom.DJP_Speed_BottomDeadCentre, _fanuc.CurLimitBom.DJP_Speed_BottomDeadCentre, "输入下死点速度(%)");

            dlg.ShowDialog();

            _fanuc.AutoSetDieClosingPara();
        }
示例#3
0
        private void OnTopDeadCentreSet()
        {
            var dlg = new DataInputDialog(_fanuc, _fanuc.CurPmcBom.DPP_TopDeadCentre, _fanuc.CurLimitBom.DPP_TopDeadCentre, "输入开模上死点位置");

            dlg.ShowDialog();

            _fanuc.AutoSetDiePartingPara();
        }
示例#4
0
        public void OnCR_SetLubricateIntervalSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_CR_SetLubricateInterval,
                                          _fanuc.CurLimitBom.SPL_CR_SetLubricateInterval,
                                          "输入润滑间隔冲次(次)");

            dlg.ShowDialog();
        }
        private void OnAC_DIRECTIONSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_AC_DIRECTION,
                                          _fanuc.CurLimitBom.SPA_AC_DIRECTION,
                                          "气垫高度编码器设置--编码器方向");

            dlg.ShowDialog();
        }
        private void OnAC_ERRORSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_AC_ERROR,
                                          _fanuc.CurLimitBom.SPA_AC_ERROR,
                                          "气垫高度编码器设置--偏差值mm");

            dlg.ShowDialog();
        }
        private void OnAC_LIMITDOWNSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_AC_LIMITDOWN,
                                          _fanuc.CurLimitBom.SPA_AC_LIMITDOWN,
                                          "气垫高度编码器设置--模高下限mm");

            dlg.ShowDialog();
        }
        private void OnAC_DOWNPOSITIONSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_AC_DOWNPOSITION,
                                          _fanuc.CurLimitBom.SPA_AC_DOWNPOSITION,
                                          "气垫高度编码器设置-下降达到范围mm");

            dlg.ShowDialog();
        }
        private void OnAC_MOVEPITCHSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_AC_MOVEPITCH,
                                          _fanuc.CurLimitBom.SPA_AC_MOVEPITCH,
                                          "气垫高度编码器设置--每圈移动量mm");

            dlg.ShowDialog();
        }
        private void OnAC_RESOLUTIONSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_AC_RESOLUTION,
                                          _fanuc.CurLimitBom.SPA_AC_RESOLUTION,
                                          "气垫高度编码器设置--每圈分辨率");

            dlg.ShowDialog();
        }
        private void OnIM_LIMITUPSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_IM_LIMITUP,
                                          _fanuc.CurLimitBom.SPA_IM_LIMITUP,
                                          "装模高度编码器设置--模高上限mm");

            dlg.ShowDialog();
        }
        private void OnIM_SPEEDCHANGEPOSITIONSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_IM_SPEEDCHANGEPOSITION,
                                          _fanuc.CurLimitBom.SPA_IM_SPEEDCHANGEPOSITION,
                                          "装模高度编码器设置-速度切换点mm");

            dlg.ShowDialog();
        }
        private void OnIM_UPPOSITIONSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_IM_UPPOSITION,
                                          _fanuc.CurLimitBom.SPA_IM_UPPOSITION,
                                          "装模高度编码器设置--上升达到范围mm");

            dlg.ShowDialog();
        }
示例#14
0
        public void OnAC2_ActualLubricateIntervalSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_AC2_ActualLubricateInterval,
                                          _fanuc.CurLimitBom.SPL_AC2_ActualLubricateInterval,
                                          "输入实际间隔冲次(次)");

            dlg.ShowDialog();
        }
        private void OnPressureDownSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_PressureDown,
                                          _fanuc.CurLimitBom.SPA_PressureDown,
                                          "HPM设定--压力下偏差");

            dlg.ShowDialog();
        }
        private void OnPressureSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_Pressure,
                                          _fanuc.CurLimitBom.SPA_Pressure,
                                          "HPM设定--保压压力");

            dlg.ShowDialog();
        }
示例#17
0
        public void OnAC2_LubricateTotalNumSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_AC2_LubricateTotalNum,
                                          _fanuc.CurLimitBom.SPL_AC2_LubricateTotalNum,
                                          "输入浓油润滑总次数(次)");

            dlg.ShowDialog();
        }
        private void OnTotalWeightSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_TotalWeight,
                                          _fanuc.CurLimitBom.SPA_TotalWeight,
                                          "检测设定--总吨位");

            dlg.ShowDialog();
        }
        private void OnDetectPositionSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_DetectPosition,
                                          _fanuc.CurLimitBom.SPA_DetectPosition,
                                          "检测设定--吨位检测位置");

            dlg.ShowDialog();
        }
        private void OnA4_ValueSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_A4_Value,
                                          _fanuc.CurLimitBom.SPA_A4_Value,
                                          "模拟量标定4--输入模拟量V");

            dlg.ShowDialog();
        }
        private void OnA4_WeightSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_A4_Weight,
                                          _fanuc.CurLimitBom.SPA_A4_Weight,
                                          "模拟量标定4--吨位T");

            dlg.ShowDialog();
        }
        private void OnA2_WeightPara1SetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_A2_WeightPara1,
                                          _fanuc.CurLimitBom.SPA_A2_WeightPara1,
                                          "模拟量标定2--吨位乘值");

            dlg.ShowDialog();
        }
        private void OnA3_WeightPara2SetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPA_A3_WeightPara2,
                                          _fanuc.CurLimitBom.SPA_A3_WeightPara2,
                                          "模拟量标定3--吨位除值");

            dlg.ShowDialog();
        }
示例#24
0
        public void OnOS_DelayTimeSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_OS_DelayTime,
                                          _fanuc.CurLimitBom.SPL_OS_DelayTime,
                                          "补油延时时间(秒)");

            dlg.ShowDialog();
        }
示例#25
0
        public void OnTS_RunTimeSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_TS_RunTime,
                                          _fanuc.CurLimitBom.SPL_TS_RunTime,
                                          "中转运行时间(秒)");

            dlg.ShowDialog();
        }
示例#26
0
        public void OnSC_LubricateReversingSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_SC_LubricateReversing,
                                          _fanuc.CurLimitBom.SPL_SC_LubricateReversing,
                                          "输入丝杠泵润滑换向()");

            dlg.ShowDialog();
        }
示例#27
0
        public void OnGR_LubricateDetectTimeSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_GR_LubricateDetectTime,
                                          _fanuc.CurLimitBom.SPL_GR_LubricateDetectTime,
                                          "输入导轨润滑检测时间()");

            dlg.ShowDialog();
        }
示例#28
0
        public void OnAC2_LubricateDetecteSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_AC2_LubricateDetecte,
                                          _fanuc.CurLimitBom.SPL_AC2_LubricateDetecte,
                                          "输入润滑检测()");

            dlg.ShowDialog();
        }
示例#29
0
        public void OnAC2_PowerOnLubricateTimeSetCmd()
        {
            var dlg = new DataInputDialog(_fanuc,
                                          _fanuc.CurPmcBom.SPL_AC2_PowerOnLubricateTime,
                                          _fanuc.CurLimitBom.SPL_AC2_PowerOnLubricateTime,
                                          "输入开机润滑时间(秒)");

            dlg.ShowDialog();
        }
示例#30
0
        public void RenameCategory()
        { // TODO: Untestable, rewrite for unit testing.
            var selectedCategoryName = ActiveForm.GetCurrentSelectedCategoryName();

            // Check if user tries to change name of special categories:
            if (selectedCategoryName == Resources.CompletedTaskListText || selectedCategoryName == Resources.DefaultTaskCategoryName)
            {
                messageBoxFactory.ShowMessageBox(
                    EMessageBox.Standard,
                    Resources.RenameSpecialListErrorText,
                    Settings.Default.AppName,
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error);
                return;
            }

            // Ask user for new category name:
            DataInputDialog = dialogFactory.GetDialog(EDialog.StringInput, Resources.RenameCategoryDialogText);
            DataInputDialog.AskUser();

            if (DataInputDialog.IsDataProvided())
            {
                var newCategoryName     = (string)DataInputDialog.ReturnValue;
                var categoryToBeRenamed = QueryCategory(selectedCategoryName);

                // Change category name to new one in settings, display and memory:
                foreach (var category in Categories)
                {
                    if (category.Name == selectedCategoryName)
                    {
                        var index = Settings.Default.Categories.IndexOf(selectedCategoryName);
                        Settings.Default.Categories.RemoveAt(index);
                        Settings.Default.Categories.Add(newCategoryName);
                        Settings.Default.Save();

                        ActiveForm.RenameCategoryInDisplay(categoryToBeRenamed, newCategoryName);
                        category.Name = newCategoryName;
                        break;
                    }
                }
            }
            else
            {
                messageBoxFactory.ShowMessageBox(
                    EMessageBox.Standard,
                    Resources.NoDataProvidedErrorText,
                    Settings.Default.AppName,
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error);
            }

            var dialog = (Form)DataInputDialog;

            dialog.Dispose();
        }