예제 #1
0
파일: TCountry.cs 프로젝트: tzmt/GCAL-NET
 public void SaveToNode(XmlElement e)
 {
     e.SetAttribute("ISO", ISOCode);
     e.SetAttribute("ISO3", ISO3Code);
     e.SetAttribute("Fips", Fips);
     e.SetAttribute("Name", Name);
     e.SetAttribute("Capital", Capital);
     e.SetAttribute("Area", Area.ToString());
     e.SetAttribute("Population", Population.ToString());
     e.SetAttribute("ContinentISOCode", ContinentISOCode);
     e.SetAttribute("Neighbours", Neighbours);
     e.SetAttribute("FirstDayOfWeek", FirstDayOfWeek.ToString());
 }
예제 #2
0
    public override string ToString()
    {
        var day       = FirstDayOfWeek != LastDayOfWeek ? FirstDayOfWeek + "-" + LastDayOfWeek : FirstDayOfWeek.ToString();
        var timeRange = OpenTime != CloseTime ? OpenTime + "-" + CloseTime : "-";

        return(day + " " + timeRange);
    }