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; } }
public void InitializePublicIP() { string ip = ADSFile.LoadString(this.ADS_PublicIP, this.Path, true); if (ip.IsNullOrWhiteSpace()) { this.PublicIP = null; } else { PublicIP = ip; } }
public void Delete() { this.Clear(); try { ADSFile.Write("", this.Path, this.Name); } catch (Exception ex) { Output.WriteException(ex); } }
public void Save() { try { if (Data.IsNullOrWhiteSpace()) { return; } ADSFile.Write(DataRawEncryptedCompressed, this.Path, this.Name); } catch (Exception ex) { Output.WriteException(ex); } }
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); } }
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); } }
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); } }
/// <summary> /// /// </summary> public ReportAttributes(String strPathName) { m_strPathName = strPathName; m_ADSFile = new ADSFile(); }
/// <summary> /// /// </summary> /// <param name="strPathName" type="string"> /// </param> /// <returns> /// A bool value... /// </returns> static public Boolean Exists(String strPathName) { return(ADSFile.Exists(strPathName, ItronAttributes)); }