public List <AsncyGetInformation> GetInfrmationofdateGet(EnumGetXML Enum)
        {
            if (!Login)
            {
                throw new MemberAccessException("لم يتم تسجيل الدخول");
            }

            List <AsncyGetInformation> AsncyGetInformation = new List <AsncyGetInformation>();

            #region GetString
            if (Enum == EnumGetXML.GetString)
            {
                string Like = string.Format("{0}/{1}{2}"
                                            , DomenName
                                            , EnumLink.GetNameTeamVitel
                                            , EnumLink.AtuTction(this.UserName, this.Password)

                                            );

                try
                {
                    string Get = System.Text.Encoding.UTF8.GetString(WebClient.DownloadData(Like));

                    string[] temS = Get.Split(';');
                    foreach (string item in temS)
                    {
                        string[] temAll = item.Split(',');
                        AsncyGetInformation.Add(new AsncyGetInformation(Convert.ToInt32(temAll[0]), Convert.ToString(temAll[1]), Convert.ToInt32(temAll[2]) == 1 ? true : false));
                    }
                }
                catch { }
            }
            #endregion
            return(AsncyGetInformation);
        }
        public void RetXmlFile(EnumGetXML Enum, XDocument XDocument, int IdDataBase)
        {
            if (!Login)
            {
                throw new MemberAccessException("لم يتم تسجيل الدخول");
            }
            string Link = "";

            if (Enum == EnumGetXML.RetXMLTheAssessVitel)
            {
                Link = string.Format("{0}/{1}{2}&IdOpration={3}&XmlRet={4}"
                                     , DomenName
                                     , EnumLink.RetNameForAssessVitel
                                     , EnumLink.AtuTction(this.UserName, this.Password)
                                     , IdDataBase
                                     , Header + XDocument.ToString()
                                     );
            }
            else if (Enum == EnumGetXML.MakeAssetGet)
            {
                Link = string.Format("{0}/{1}{2}&XmlGET={3}&IDUserLogin={4}"
                                     , DomenName
                                     , EnumLink.MakeAssetGet
                                     , EnumLink.AtuTction(this.UserName, this.Password)
                                     , Header + XDocument.ToString()
                                     , IdDataBase
                                     );
            }

            WebClient client        = new WebClient();
            string    tringofdataid = System.Text.Encoding.UTF8.GetString(client.DownloadData(Link));
        }
        public XDocument GetXmlFile(EnumGetXML Enum)
        {
            if (!Login)
            {
                throw new MemberAccessException("لم يتم تسجيل الدخول");
            }

            XDocument doc = null;

            if (Enum == EnumGetXML.GetXMLTheAssessVitel)
            {
                string Like = string.Format("{0}/{1}{2}&id={3}"
                                            , DomenName
                                            , EnumLink.GetNameForAssessVitel
                                            , EnumLink.AtuTction(this.UserName, this.Password)
                                            , this.Id
                                            );



                string Get = System.Text.Encoding.UTF8.GetString(WebClient.DownloadData(Like));
                int    f   = 0;
                try
                {
                    f = Convert.ToInt32(Get);
                }
                catch { }
                if (f == -1)
                {
                    throw new MemberAccessException("لا يوجد متطوعين للتقيم");
                }

                try
                {
                    doc = XDocument.Parse(Get.Trim());
                }
                catch (Exception e)
                {
                    throw e;
                }
                return(doc);
            }



            else if (Enum == EnumGetXML.GetXMLTheNameTeam)
            {
                string Like = string.Format("{0}/{1}{2}&id={3}"
                                            , DomenName
                                            , EnumLink.GetNameTeamVitel
                                            , EnumLink.AtuTction(this.UserName, this.Password)
                                            , this.Id

                                            );


                doc = XDocument.Load(Like);
                return(doc);
            }
            return(doc);
        }