Exemple #1
0
 public void Set(CT_Sheet sheet)
 {
     this.nameField    = sheet.nameField;
     this.sheetIdField = sheet.sheetIdField;
     this.stateField   = sheet.stateField;
     this.idField      = sheet.idField;
 }
Exemple #2
0
        public CT_Sheet Copy()
        {
            CT_Sheet obj = new CT_Sheet();

            obj.idField      = this.idField;
            obj.sheetIdField = this.sheetIdField;
            obj.nameField    = this.nameField;
            obj.stateField   = this.stateField;
            return(obj);
        }
Exemple #3
0
        public CT_Sheet InsertNewSheet(int index)
        {
            if (this.sheetField == null)
            {
                this.sheetField = new List <CT_Sheet>();
            }
            CT_Sheet newsheet = new CT_Sheet();

            this.sheetField.Insert(index, newsheet);
            return(newsheet);
        }
Exemple #4
0
        public CT_Sheet AddNewSheet()
        {
            if (this.sheetField == null)
            {
                this.sheetField = new List <CT_Sheet>();
            }
            CT_Sheet newsheet = new CT_Sheet();

            this.sheetField.Add(newsheet);
            return(newsheet);
        }
Exemple #5
0
        public static CT_Sheet Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Sheet ctObj = new CT_Sheet();

            ctObj.name    = XmlHelper.ReadString(node.Attribute("name"));
            ctObj.sheetId = XmlHelper.ReadUInt(node.Attribute("sheetId"));
            if (node.Attribute("state") != null)
            {
                ctObj.state = (ST_SheetState)Enum.Parse(typeof(ST_SheetState), node.Attribute("state").Value);
            }
            ctObj.id = XmlHelper.ReadString(node.Attribute((XNamespace)PackageNamespaces.SCHEMA_RELATIONSHIPS + "id"));
            return(ctObj);
        }
Exemple #6
0
        public static CT_Sheets Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Sheets ctObj = new CT_Sheets();

            ctObj.sheet = new List <CT_Sheet>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "sheet")
                {
                    ctObj.sheet.Add(CT_Sheet.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }