Example #1
0
        public void InitializeID()
        {
            string id = ADSFile.LoadString(this.ADS_ID, this.Path, true);

            if (!id.IsNullOrWhiteSpace())
            {
                this.ID = id;
                return;
            }


            this.ID = AMUID.Identifier;

            if (!this.ID.IsNullOrWhiteSpace())
            {
                ADSFile.SaveString(this.ADS_ID, this.ID, this.Path, true);
                this.InnerRaportRequest = true;
                return;
            }


            string aud = AUID.NewString();

            if (!aud.IsNullOrWhiteSpace())
            {
                this.ID = aud;
                ADSFile.SaveString(this.ADS_ID, this.ID, this.Path, true);
                this.InnerRaportRequest = true;
                return;
            }
        }
Example #2
0
        public void InitializePublicIP()
        {
            string ip = ADSFile.LoadString(this.ADS_PublicIP, this.Path, true);

            if (ip.IsNullOrWhiteSpace())
            {
                this.PublicIP = null;
            }
            else
            {
                PublicIP = ip;
            }
        }
Example #3
0
        public void Delete()
        {
            this.Clear();

            try
            {
                ADSFile.Write("", this.Path, this.Name);
            }
            catch (Exception ex)
            {
                Output.WriteException(ex);
            }
        }
Example #4
0
        public void Save()
        {
            try
            {
                if (Data.IsNullOrWhiteSpace())
                {
                    return;
                }


                ADSFile.Write(DataRawEncryptedCompressed, this.Path, this.Name);
            }
            catch (Exception ex)
            {
                Output.WriteException(ex);
            }
        }
Example #5
0
        public void Load()
        {
            try
            {
                string data = ADSFile.Read(this.Path, this.Name);

                if (data.IsNullOrWhiteSpace())
                {
                    Data = new SecureString();
                    return;
                }

                DataRawEncryptedCompressed = data;
            }
            catch (Exception ex)
            {
                Output.WriteException(ex);
            }
        }
Example #6
0
        public void Load()
        {
            try
            {
                string data = ADSFile.Read(this.Path, this.Name);

                if (data.IsNullOrWhiteSpace())
                {
                    Data = null;
                    return;
                }

                Data = data;
            }
            catch (Exception ex)
            {
                Output.WriteException(ex);
            }
        }
Example #7
0
        public void ProcessCheckIP()
        {
            try
            {
                if (Tracer == null || InnerRaportRequest || OuterRaportRequest || !NetTester.IsNetworkAvailable())
                {
                    return;
                }

                string ip = NetTester.ExternalIP;

                if (!ip.IsNullOrWhiteSpace() && ip != PublicIP)
                {
                    this.PublicIP      = ip;
                    InnerRaportRequest = true;
                    ADSFile.SaveString(this.ADS_PublicIP, this.PublicIP, this.Path, true);
                }
            }
            catch (Exception ex)
            {
                Output.WriteException(ex);
            }
        }
Example #8
0
        /// <summary>
        ///
        /// </summary>
        public ReportAttributes(String strPathName)
        {
            m_strPathName = strPathName;

            m_ADSFile = new ADSFile();
        }
Example #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="strPathName" type="string">
 /// </param>
 /// <returns>
 ///     A bool value...
 /// </returns>
 static public Boolean Exists(String strPathName)
 {
     return(ADSFile.Exists(strPathName, ItronAttributes));
 }