Пример #1
0
    //Program信息提取
    public bool ProgramAdd(DataRow program_row, string id, DataTable group_table)
    {
        ProgramInfoManager proMana = new ProgramInfoManager();
        bool resultFlag            = proMana.ProgramInfoGet(program_row, id, group_table, _motionList, _complexMotionList);

        if (resultFlag && MotionPara.isEditor)
        {
            string programID = ((string)program_row[2].ToString()).ToUpper();
            if (programID == "TONGBANG")
            {
                //铜棒敲击
                complexID.Add(complexID.Count, id);
            }
            else if (programID == "BAIFANG")
            {
                //物体摆放
                complexID.Add(complexID.Count, id);
            }
            else if (programID == "NINGSONG")
            {
                //螺钉拧松拧紧
                complexID.Add(complexID.Count, id);
            }
            else if (programID == "NINGCHU")
            {
                //螺钉拧进拧出
                complexID.Add(complexID.Count, id);
            }
        }
        return(resultFlag);
    }
Пример #2
0
	//Program信息提取
	public bool ProgramAdd(DataRow program_row, string id, DataTable group_table)
	{
		ProgramInfoManager proMana = new ProgramInfoManager();
		bool resultFlag = proMana.ProgramInfoGet(program_row, id, group_table, _motionList, _complexMotionList);
		if (resultFlag && MotionPara.isEditor)
		{
			string programID = ((string)program_row[2].ToString()).ToUpper();
			if (programID == "TONGBANG")
			{
				//铜棒敲击
				complexID.Add(complexID.Count, id);
			}
			else if (programID == "BAIFANG")
			{
				//物体摆放
				complexID.Add(complexID.Count, id);
			}
			else if (programID == "NINGSONG")
			{
				//螺钉拧松拧紧
				complexID.Add(complexID.Count, id);
			}
			else if (programID == "NINGCHU")
			{
				//螺钉拧进拧出
				complexID.Add(complexID.Count, id);
			}
		}
		return resultFlag;
	}