示例#1
0
        private List <Gewerk> ReadServices(XElement el)
        {
            List <Gewerk> copy = new List <Gewerk>();

            foreach (XElement childEl in el.Elements())
            {
                switch (childEl.Name.ToString())
                {
                case "Gewerk":
                    Gewerk cpyitem = new Gewerk();
                    cpyitem.Services = childEl.Value;
                    if (cpyitem.IsEmpty())
                    {
                        SendError(string.Format("Invalid Services"));
                        break;
                    }
                    copy.Add(cpyitem);
                    break;

                default:
                    AddUnknowNodeError(childEl);
                    break;
                }
            }
            return(copy);
        }
示例#2
0
        private void WriteCompanyActions(Gewerk c)
        {
            if (c.IsEmpty())
            {
                return;
            }

            Writer.WriteElementString("Gewerk", c.Services);
        }
示例#3
0
        public FormCpyMain(DataControl dc) : base(dc)
        {
            InitializeComponent();

            _cpyList = new List <Company>();
            _ae      = new AvaError("Company DB");
            c        = new Gewerk();
            _glist   = new List <Gewerk>();
        }
示例#4
0
        private Gewerk Readgewerk(XElement el)
        {
            Gewerk gin = new Gewerk();

            foreach (XElement childEl in el.Elements())
            {
                switch (childEl.Name.ToString())
                {
                case "Gewerk":
                    gin.Services = childEl.Value;
                    break;

                default:
                    AddUnknowNodeError(childEl);
                    break;
                }
            }
            return(gin);
        }
示例#5
0
 private void writeservice(Gewerk g)
 {
     Writer.WriteStartElement("Gewerke");
     Writer.WriteElementString("Gewerk", g.Services);
     Writer.WriteEndElement();
 }
示例#6
0
        public FormGewerk(DataControl dc, Gewerk c) : base(dc)

        {
            InitializeComponent();
            _ae = new AvaError("Company Actions");
        }