示例#1
0
        public void SetUiVisible(CommandCmdDef.UiIndex a)
        {
            InitAll();
            switch (a)
            {
            case CommandCmdDef.UiIndex.UI_UPDATE:
                is_Update_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_MainSelect:
                is_mainselect_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_MachineSet:
                is_machineset_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_MachineTest:
                is_machinetest_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_COM_SET:
                break;

            case CommandCmdDef.UiIndex.UI_RECIPESYS:
                is_Recipe_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_CLEANSYS:
                is_Clean_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_DB:
                is_DB_visible = true;
                break;

            default:
                break;
            }
        }
示例#2
0
文件: UiData.cs 项目: icprog/PC
        public void HideUiVisble(CommandCmdDef.UiIndex a)
        {
            switch (a)
            {
            case CommandCmdDef.UiIndex.UI_MainSelect:
                break;

            case CommandCmdDef.UiIndex.UI_MachineSet:
                break;

            case CommandCmdDef.UiIndex.UI_MachineTest:
                break;

            case CommandCmdDef.UiIndex.UI_RECIPESYS:
                break;

            case CommandCmdDef.UiIndex.UI_CLEANSYS:
                break;

            case CommandCmdDef.UiIndex.UI_DB:
                break;

            case CommandCmdDef.UiIndex.UI_STCHECK:
                break;

            case CommandCmdDef.UiIndex.UI_UPDATE:
                break;

            case CommandCmdDef.UiIndex.UI_ING_DETAIL:
                break;

            case CommandCmdDef.UiIndex.UI_ING_LIST:
                break;

            case CommandCmdDef.UiIndex.UI_RCP_LIST:
                break;

            case CommandCmdDef.UiIndex.UI_RCP_DETAIL:
                break;

            case CommandCmdDef.UiIndex.UI_SET_VALVE:
                is_valvedetail_visible = false;
                break;

            case CommandCmdDef.UiIndex.UI_SET_CANISTER:
                is_canisterdetail_visible = false;;
                break;

            case CommandCmdDef.UiIndex.UI_COM_SET:
                break;

            case CommandCmdDef.UiIndex.UI_SET_BEANHOPPER:
                is_beandetail_visible = false;
                break;

            case CommandCmdDef.UiIndex.UI_SET_MIXER:
                is_mixerdetail_visible = false;

                break;

            default:
                break;
            }
        }
示例#3
0
文件: UiData.cs 项目: icprog/PC
        public void SetUiVisible(CommandCmdDef.UiIndex a)
        {
            InitAll();
            switch (a)
            {
            case CommandCmdDef.UiIndex.UI_TEST_CALIBRATION:
                is_calibration_visible = true;
                is_machinetest_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_TEST_OVERVIW:
                is_machinetestoverview_visible = true;
                is_machinetest_visible         = true;
                break;

            case CommandCmdDef.UiIndex.UI_SET_CANISTER:
                is_machineset_visible     = true;
                is_canisterdetail_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_SET_MIXER:
                is_machineset_visible  = true;
                is_mixerdetail_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_SET_BEANHOPPER:
                is_machineset_visible = true;
                is_beandetail_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_SET_VALVE:
                is_machineset_visible  = true;
                is_valvedetail_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_RCP_DETAIL:
                is_Recipe_visible       = true;
                is_recipedetail_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_RCP_LIST:
                is_Recipe_visible     = true;
                is_recipelist_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_ING_LIST:
                is_Recipe_visible         = true;
                is_ingredientlist_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_ING_DETAIL:
                is_Recipe_visible           = true;
                is_ingredientdetail_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_UPDATE:
                is_Update_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_MainSelect:
                is_mainselect_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_MachineSet:
                is_machineset_visible = true;
                Console.WriteLine("test info: is_machineset_visible =" + is_machineset_visible.ToString());

                break;

            case CommandCmdDef.UiIndex.UI_MachineTest:
                is_machinetest_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_COM_SET:
                break;

            case CommandCmdDef.UiIndex.UI_RECIPESYS:

                is_Recipe_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_CLEANSYS:
                is_Clean_visible = true;
                break;

            case CommandCmdDef.UiIndex.UI_DB:
                is_DB_visible = true;
                break;

            default:
                break;
            }
        }