示例#1
0
 private ComponentInfo.Get_Body GetParamBody(IBody7 body)
 {
     ComponentInfo.Get_Body _Body = new ComponentInfo.Get_Body();
     _Body.Naim = body.Name;
     _Body.Oboz = body.Marking;
     return(_Body);
 }
示例#2
0
        private void AddCellsInNode(TreeListNode Node, ComponentInfo.Get_Body _Body)
        {
            Dictionary <string, string> ParValues = _Body.ParamValueList;

            foreach (string FieldName in FindParam_Model)
            {
                Node.SetValue(FieldName, ParValues[FieldName]);
            }
            Node.ImageIndex       = 3;
            Node.SelectImageIndex = 3;
            Node.StateImageIndex  = 3;

            string RazdelSP = "";

            try
            {
                RazdelSP = ParValues["Раздел спецификации"];
                if (!string.IsNullOrEmpty(RazdelSP))
                {
                    SetNodeImageIndex_By_Section_Name(RazdelSP, Node);
                }
            }
            catch { }
        }