Esempio n. 1
0
        public void UIupdateOperation()
        {
            switch (BaseData.SystemInfo.WindowsState)
            {
            case 0: { SetText("label12", "窗口未锁定"); break; }

            case 1: { SetText("label12", "窗口已锁定"); break; }

            default:
                break;
            }
            this.SetText("label99", BaseData.SystemInfo.AppState);
            this.SetText("label13", PageCheck());

            try
            {
                SetText("comboBox1", im.gameData.User_operationInfo[0].OperationTeamName);
                SetText("comboBox2", im.gameData.User_operationInfo[1].OperationTeamName);
                SetText("comboBox3", im.gameData.User_operationInfo[2].OperationTeamName);
                SetText("comboBox4", im.gameData.User_operationInfo[3].OperationTeamName);
                SetText("comboBox5", im.gameData.User_operationInfo[0].OperationName);
                SetText("comboBox6", im.gameData.User_operationInfo[1].OperationName);
                SetText("comboBox7", im.gameData.User_operationInfo[2].OperationName);
                SetText("comboBox8", im.gameData.User_operationInfo[3].OperationName);


                SetText("textBox1", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[0].OperationLastTime, "H").ToString());
                SetText("textBox33", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[0].OperationLastTime, "M").ToString());
                SetText("textBox37", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[0].OperationLastTime, "S").ToString());

                SetText("textBox2", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[1].OperationLastTime, "H").ToString());
                SetText("textBox32", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[1].OperationLastTime, "M").ToString());
                SetText("textBox36", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[1].OperationLastTime, "S").ToString());

                SetText("textBox3", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[2].OperationLastTime, "H").ToString());
                SetText("textBox31", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[2].OperationLastTime, "M").ToString());
                SetText("textBox35", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[2].OperationLastTime, "S").ToString());

                SetText("textBox4", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[3].OperationLastTime, "H").ToString());
                SetText("textBox30", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[3].OperationLastTime, "M").ToString());
                SetText("textBox34", CommonHelp.SecondToHourMS(im.gameData.User_operationInfo[3].OperationLastTime, "S").ToString());


                SetText("label34", CommonHelp.PictureBox1Count.ToString());
                SetText("label35", CommonHelp.PictureBox2Count.ToString());
                SetText("label39", im.Form1.imageList1.Images.Count.ToString());
                SetText("label40", im.Form1.imageList2.Images.Count.ToString());
            }
            catch (Exception)
            {
            }

            try
            {
                SetText("textBox22", Convert.ToInt32(im.gameData.User_BuildingEquipmentInfo[0].BuildingTime).ToString());           // 装备建造次数
                SetText("textBox24", Convert.ToInt32(im.gameData.User_BuildingEquipmentInfo[0].BuildEquipmentLastTime).ToString()); // 装备建造时间
                SetText("textBox23", Convert.ToInt32(im.gameData.User_BuildingEquipmentInfo[1].BuildingTime).ToString());           // 装备建造次数
                SetText("textBox25", Convert.ToInt32(im.gameData.User_BuildingEquipmentInfo[1].BuildEquipmentLastTime).ToString()); // 装备建造时间
                SetText("textBox27", Convert.ToInt32(im.gameData.User_BuildingEquipmentInfo[2].BuildingTime).ToString());           // 装备建造次数
                SetText("textBox26", Convert.ToInt32(im.gameData.User_BuildingEquipmentInfo[2].BuildEquipmentLastTime).ToString()); // 装备建造时间
            }
            catch (Exception)
            {
                throw;
            }

            try
            {
                SetText("textBox12", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[0].BattleFixTime), "H").ToString());
                SetText("textBox42", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[0].BattleFixTime), "M").ToString());
                SetText("textBox47", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[0].BattleFixTime), "S").ToString());

                SetText("textBox14", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[1].BattleFixTime), "H").ToString());
                SetText("textBox41", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[1].BattleFixTime), "M").ToString());
                SetText("textBox46", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[1].BattleFixTime), "S").ToString());

                SetText("textBox15", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[2].BattleFixTime), "H").ToString());
                SetText("textBox40", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[2].BattleFixTime), "M").ToString());
                SetText("textBox45", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[2].BattleFixTime), "S").ToString());

                SetText("textBox17", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[3].BattleFixTime), "H").ToString());
                SetText("textBox39", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[3].BattleFixTime), "M").ToString());
                SetText("textBox44", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_battleInfo[3].BattleFixTime), "S").ToString());

                SetText("textBox19", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_AutobattleInfo[0].AutoBattleLastTime), "H").ToString());
                SetText("textBox38", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_AutobattleInfo[0].AutoBattleLastTime), "M").ToString());
                SetText("textBox43", CommonHelp.SecondToHourMS(Convert.ToInt32(im.gameData.User_AutobattleInfo[0].AutoBattleLastTime), "S").ToString());


                SetText("textBox5", Convert.ToInt32(im.gameData.User_battleInfo[0].BattleLoopTime).ToString());// 战斗任务倒数时间
                SetText("textBox13", Convert.ToInt32(im.gameData.User_battleInfo[1].BattleLoopTime).ToString());
                SetText("textBox16", Convert.ToInt32(im.gameData.User_battleInfo[2].BattleLoopTime).ToString());
                SetText("textBox18", Convert.ToInt32(im.gameData.User_battleInfo[3].BattleLoopTime).ToString());
                SetText("textBox20", Convert.ToInt32(im.gameData.User_AutobattleInfo[0].AutoBattleLoopTime).ToString());

                if (im.gameData.User_battleInfo[0].Used)
                {
                    SetText("label23", im.gameData.User_battleInfo[0].TaskName);
                }
                else
                {
                    SetText("label23", "战斗任务1");
                }
                if (im.gameData.User_battleInfo[1].Used)
                {
                    SetText("label24", im.gameData.User_battleInfo[1].TaskName);
                }
                else
                {
                    SetText("label24", "战斗任务2");
                }
                if (im.gameData.User_battleInfo[2].Used)
                {
                    SetText("label25", im.gameData.User_battleInfo[2].TaskName);
                }
                else
                {
                    SetText("label25", "战斗任务3");
                }

                if (im.gameData.User_battleInfo[3].Used)
                {
                    SetText("label26", im.gameData.User_battleInfo[3].TaskName);
                }
                else
                {
                    SetText("label26", "战斗任务4");
                }
            }
            catch (Exception)
            {
                throw;
            }

            try
            {
                SetText("textBox6", Convert.ToInt32(im.ShowerTime[0]).ToString());//澡堂
                SetText("textBox7", Convert.ToInt32(im.ShowerTime[1]).ToString());
                SetText("textBox8", Convert.ToInt32(im.ShowerTime[2]).ToString());
                SetText("textBox9", Convert.ToInt32(im.ShowerTime[3]).ToString());
                SetText("textBox10", Convert.ToInt32(im.ShowerTime[4]).ToString());
                SetText("textBox11", Convert.ToInt32(im.ShowerTime[5]).ToString());
            }
            catch (Exception)
            {
                throw;
            }


            try
            {
                //SetText("label3", "");//清空队列任务
                //SetText("label4", "");
                //SetText("label5", "");
                //SetText("label6", "");
                //SetText("label7", "");
                int i = 3;
                foreach (var item in CommonHelp.gametasklist)
                {
                    SetText("label" + i.ToString(), item.TaskName);
                    i++;
                }
                for (; i < 8; i++)
                {
                    SetText("label" + i.ToString(), "");
                }

                //SetText("label3", im.gametasklist[0].TaskName);//显示队列任务
                //SetText("label4", im.gametasklist[1].TaskName);
                //SetText("label5", im.gametasklist[2].TaskName);
                //SetText("label6", im.gametasklist[3].TaskName);
                //SetText("label7", im.gametasklist[4].TaskName);
            }
            catch (Exception)
            {
            }
        }