示例#1
0
 public override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     EventLabel(frm, parent, ref location, "HF:", HF);
     EventLabel(frm, parent, ref location, "State:", BodyState);
     EventLabel(frm, parent, ref location, "Site:", Site);
     EventLabel(frm, parent, ref location, "BuildingID:", BuildingID.ToString());
     EventLabel(frm, parent, ref location, "Region:", Subregion);
     EventLabel(frm, parent, ref location, "Layer:", FeatureLayerID == -1 ? "" : FeatureLayerID.ToString());
     EventLabel(frm, parent, ref location, "Coords:", new Coordinate(Coords));
 }
示例#2
0
        public override string ToString()
        {
            string pathDelimiter = PathDelimiter;
            string result        = string.Empty;

            if (BuildingID == 0 && ResourceID == 0)
            {
                return(result);
            }
            else
            {
                result += BuildingID.ToString();
            }

            if (LabID == 0 && ResourceID == 0)
            {
                return(result);
            }
            else
            {
                result += pathDelimiter + LabID.ToString();
            }

            if (ProcessTechID == 0 && ResourceID == 0)
            {
                return(result);
            }
            else
            {
                result += pathDelimiter + ProcessTechID.ToString();
            }

            if (ResourceID == 0)
            {
                return(result);
            }
            else
            {
                result += pathDelimiter + ResourceID.ToString();
            }

            return(result);
        }
示例#3
0
        public string GetCondensedInformation()
        {
            string name, left, top, facing;

            name = BuildingID.ToString();
            left = LeftPosition.ToString();
            top  = TopPosition.ToString();

            switch (DirectionFacing)
            {
            case Enums.BuildingDirection.Down: facing = "down"; break;

            case Enums.BuildingDirection.Left: facing = "left"; break;

            case Enums.BuildingDirection.Up: facing = "up"; break;

            case Enums.BuildingDirection.Right: facing = "right"; break;

            default: facing = "???"; break;
            }

            return(string.Format("{0} -- position: (left: {1}, top: {2}) -- facing: {3}", name, left, top, facing));
        }
示例#4
0
        public override string LegendsDescription()
        {
            string timestring = base.LegendsDescription();

            return(string.Format("{0} {1} was entombed in {2} within {3}.",
                                 timestring, HF.ToString(), Site.AltName, "BUILDING " + BuildingID.ToString()));
        }