public void DumpXml(XmlWriter writer) { writer.WriteElementString("disp-id", SlotId.ToString()); if (Method != null && AbcDumpService.DumpMethods) { Method.DumpXml(writer); } }
public void DumpXml(XmlWriter writer) { writer.WriteElementString("slot-id", SlotId.ToString()); if (Method != null && AbcDumpService.DumpMethods) { writer.WriteElementString("function", Method.ToString()); } }
public void DumpXml(XmlWriter writer) { writer.WriteElementString("slot-id", SlotId.ToString()); if (Class != null) { writer.WriteElementString("class", Class.ToString()); } }
/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { return((Id.ToString("x")) + ('~') + (TemplateId.ToString("x")) + ('~') + (Quantity.ToString("x")) + ('~') + ((SlotId != (int)ItemSlotEnum.SLOT_INVENTORY ? SlotId.ToString("x") : "")) + ('~') + (StringEffects) + (';')); }
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound) { switch (strPropertyName.ToLower()) { case "slotid": // Int return(SlotId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "start": // Time return(Start.ToString(strFormat, formatProvider)); case "durationmins": // Int return(DurationMins.ToString(strFormat, formatProvider)); case "slottype": // Int return(SlotType.ToString(strFormat, formatProvider)); case "title": // NVarChar if (Title == null) { return(""); } ; return(PropertyAccess.FormatString(Title, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "daynr": // Int if (DayNr == null) { return(""); } ; return(((int)DayNr).ToString(strFormat, formatProvider)); case "locationid": // Int if (LocationId == null) { return(""); } ; return(((int)LocationId).ToString(strFormat, formatProvider)); default: propertyNotFound = true; break; } return(Null.NullString); }
public void DumpXml(XmlWriter writer) { writer.WriteElementString("slot-id", SlotId.ToString()); writer.WriteElementString("type", Type.ToString()); if (HasValue) { writer.WriteElementString("value", _value != null ? _value.ToString() : "null"); } }
/// <summary> /// /// </summary> /// <param name="message"></param> public void SerializeAs_BagContent(StringBuilder message) { message .Append(Id.ToString("x")).Append('~') .Append(TemplateId.ToString("x")).Append('~') .Append(Quantity.ToString("x")).Append('~') .Append((SlotId != (int)ItemSlotEnum.SLOT_INVENTORY ? SlotId.ToString("x") : "")).Append('~') .Append(StringEffects).Append(';'); }
public IDictionary <String, String> GetValues() { var values = new Dictionary <String, String> { { nameof(Index), Index.ToString() }, { nameof(SlotId), SlotId.ToString() }, { nameof(PortId), PortId.ToString() }, }; foreach (var item in GetAdditonalValues()) { values.Add(item.Key, item.Value); } return(values); }
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound) { switch (strPropertyName.ToLower()) { case "sessionid": // Int return(SessionId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "locationid": // Int if (LocationId == null) { return(""); } ; return(((int)LocationId).ToString(strFormat, formatProvider)); case "level": // NVarChar if (Level == null) { return(""); } ; return(PropertyAccess.FormatString(Level, strFormat)); case "sort": // Int if (Sort == null) { return(""); } ; return(((int)Sort).ToString(strFormat, formatProvider)); case "capacity": // Int if (Capacity == null) { return(""); } ; return(((int)Capacity).ToString(strFormat, formatProvider)); case "slotid": // Int return(SlotId.ToString(strFormat, formatProvider)); case "title": // NVarChar if (Title == null) { return(""); } ; return(PropertyAccess.FormatString(Title, strFormat)); case "subtitle": // NVarChar if (SubTitle == null) { return(""); } ; return(PropertyAccess.FormatString(SubTitle, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "status": // Int if (Status == null) { return(""); } ; return(((int)Status).ToString(strFormat, formatProvider)); case "isplenary": // Bit return(IsPlenary.ToString()); case "daynr": // Int return(DayNr.ToString(strFormat, formatProvider)); case "notes": // NVarCharMax if (Notes == null) { return(""); } ; return(PropertyAccess.FormatString(Notes, strFormat)); case "trackid": // Int if (TrackId == null) { return(""); } ; return(((int)TrackId).ToString(strFormat, formatProvider)); default: propertyNotFound = true; break; } return(Null.NullString); }