예제 #1
0
        /// <summary>
        /// Core code to Save the object's XML to the XmlWriter.
        /// </summary>
        /// <param name="objWriter">XmlTextWriter to write with.</param>
        public override void PrintInner(XmlTextWriter objWriter, bool blnIsCommlink = true)
        {
            base.PrintInner(objWriter, true);

            objWriter.WriteElementString("attack", GetTotalMatrixAttribute("Attack").ToString());
            objWriter.WriteElementString("sleaze", GetTotalMatrixAttribute("Sleaze").ToString());
            objWriter.WriteElementString("dataprocessing", GetTotalMatrixAttribute("Data Processing").ToString());
            objWriter.WriteElementString("firewall", GetTotalMatrixAttribute("Firewall").ToString());
            objWriter.WriteElementString("devicerating", GetTotalMatrixAttribute("Device Rating").ToString());
            objWriter.WriteElementString("processorlimit", ProcessorLimit.ToString());
            objWriter.WriteElementString("active", IsActive.ToString());
            objWriter.WriteElementString("homenode", HomeNode.ToString());
        }
예제 #2
0
 /// <summary>
 /// Core code to Save the object's XML to the XmlWriter.
 /// </summary>
 /// <param name="objWriter">XmlTextWriter to write with.</param>
 public override void SaveInner(XmlTextWriter objWriter)
 {
     base.SaveInner(objWriter);
     objWriter.WriteElementString("iscommlink", System.Boolean.TrueString);
     objWriter.WriteElementString("overclocked", _strOverclocked);
     objWriter.WriteElementString("attack", _strAttack);
     objWriter.WriteElementString("sleaze", _strSleaze);
     objWriter.WriteElementString("dataprocessing", _strDataProcessing);
     objWriter.WriteElementString("firewall", _strFirewall);
     objWriter.WriteElementString("canswapattributes", _blnCanSwapAttributes.ToString());
     objWriter.WriteElementString("active", IsActive.ToString());
     objWriter.WriteElementString("homenode", HomeNode.ToString());
 }
 /// <summary>
 /// Creates a new TheUserDetails
 /// </summary>
 public TheUserDetailsI()
 {
     HomeNode  = TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID;
     NodeScope = HomeNode.ToString();             // "this";
 }