예제 #1
0
        public string GetPresetDataString(GetZoneNameDelegate dGetZoneName = null, bool showIDToo = false)
        {
            //	Try to get the zone name from the function passed to us if we can.
            string zoneName = "";

            if (dGetZoneName != null)
            {
                try
                {
                    zoneName = dGetZoneName(MapID, showIDToo);
                }
                catch
                {
                    zoneName = "Error retrieving zone name!";
                }
            }

            //	Construct the string.
            string str = "";

            str += "A: " + A.GetWaymarkDataString() + "\r\n";
            str += "B: " + B.GetWaymarkDataString() + "\r\n";
            str += "C: " + C.GetWaymarkDataString() + "\r\n";
            str += "D: " + D.GetWaymarkDataString() + "\r\n";
            str += "1: " + One.GetWaymarkDataString() + "\r\n";
            str += "2: " + Two.GetWaymarkDataString() + "\r\n";
            str += "3: " + Three.GetWaymarkDataString() + "\r\n";
            str += "4: " + Four.GetWaymarkDataString() + "\r\n";
            str += "Zone: " + zoneName + "\r\n";
            str += "Last Modified: " + Time.LocalDateTime.ToString();
            return(str);
        }