예제 #1
0
 public override string ToString()
 {
     return("hosting unit key: " + HostingUnitKey.ToString() + "\n" +
            "hosting unit name: " + HostingUnitName.ToString() + "\n" +
            "hosting unit area: " + Area.ToString() + "\n" +
            "hosting unit sub area: " + SubArea + "\n" +
            DiaryToString());
 }
예제 #2
0
        public override string ToString()
        {
            string isSubArea = SubArea != default(Enum_s.SubArea) ? " Specific Area: " + SubArea.ToString("g") : "";

            return("Hosting Unit ID: " + HostingUnitKey.ToString() + " Hosting Unit Name: " + HostingUnitName + " Owner: " +
                   Owner.ToString() + "\nArea: " + Area.ToString("g") + isSubArea + " Hosting Unit Type: " + Type + "\nYour Group: Adults- " +
                   Adults.ToString() + " Children- " + Children.ToString() + " Special Additions: Pool- " + Pool.ToString() +
                   " Jucuzzi- " + Jacuzzi.ToString() + " Garden- " + Garden.ToString() + " Attractions For Children- " +
                   ChildrenAttractions.ToString() + "price for a day: " + Price.ToString() + '\n');
        }
예제 #3
0
        public override string ToString()
        {
            string isSubArea = SubArea != default(Enum_s.SubArea) ? " Specific Area: " + SubArea.ToString("g") : "";

            return("Guest Request ID: " + GuestRequestKey.ToString() + "   Name: "
                   + FirstName + ' ' + LastName + "   Mail Address: " + MailAddress +
                   "\nOrder Status: " + Status.ToString("g") + " Application Date: " + RegistrationDate.ToString("d") +
                   " Check In Date: " + EntryDate.ToString("d") + " Check Out Date: " + ReleaseDate.ToString("d") +
                   "\nArea: " + Area.ToString("g") + isSubArea + " Hosting Unit Type: " + Type + "\nYour Group: Adults- " +
                   Adults.ToString() + " Children- " + Children.ToString() + " Special Additions: Pool- " + Pool.ToString("g") +
                   " Jucuzzi- " + Jacuzzi.ToString("g") + " Garden- " + Garden.ToString("g") + " Attractions For Children- " +
                   ChildrenAttractions.ToString("g") + '\n');
        }
예제 #4
0
 public override string ToString()
 {
     return("Hosting Unit Key: " + HostingUnitKey.ToString() + "\n"
            + "Hosting Unit Name: " + HostingUnitName.ToString() + "\n"
            + "Price: " + price.ToString() + "\n"
            + "Area: " + Area.ToString() + "\n"
            + "Type: " + Type.ToString() + "\n"
            + "Adults: " + Adults.ToString() + "\n"
            + "Children: " + Children.ToString() + "\n"
            + "Pool: " + Pool.ToString() + "\n"
            + "Jacuzzi: " + Jacuzzi.ToString() + "\n"
            + "Garden: " + Garden.ToString() + "\n"
            + "Beach: " + Beach.ToString() + "\n"
            + "Attractions: " + ChildrenAttractions.ToString() + "\n");
 }
예제 #5
0
 public override string ToString()
 {
     return("Guest Request Key: " + GuestRequestKey.ToString() + "\n" +
            "First Name: " + FirstName + "\n" +
            "LastName: " + LastName + "\n" +
            "MailAddress: " + MailAddress + "\n" +
            "Status: " + Status.ToString() + "\n" +
            "RegistrationDate: " + RegistrationDate.ToString() + "\n" +
            "EntryDate: " + EntryDate.ToString() + "\n" +
            "ReleaseDate: " + ReleaseDate.ToString() + "\n" +
            "Area: " + Area.ToString() + "\n" +
            "SubArea: " + SubArea + "\n" +
            "Type of unit: " + Type.ToString() + "\n" +
            "number of adoults: " + Adults.ToString() + "\n" +
            "number of children: " + Children.ToString() + "\n" +
            "want swimming pool? " + Pool.ToString() + "\n" +
            "want jacuzzi? " + Jacuzzi.ToString() + "\n" +
            "want a garden? " + Garden.ToString() + "\n" +
            "want children attractions? " + ChildrensAttractions.ToString() + "\n");
 }
예제 #6
0
 public override string ToString()
 {
     return("Guest Request Key: " + GuestRequestKey.ToString() + "\n"
            + "Private Name: " + PrivateName.ToString() + "\n"
            + "Family Name: " + FamilyName.ToString() + "\n"
            + "Mail Address: " + MailAddress.ToString() + "\n"
            + "Request's status: " + Status.ToString() + "\n"
            + "Registration Date: " + RegistrationDate.ToString() + "\n"
            + "Entry Date: " + EntryDate.ToString() + "\n"
            + "Release Date: " + ReleaseDate.ToString() + "\n"
            + "Request Area: " + Area.ToString() + "\n"
            + "Request Type: " + Type.ToString() + "\n"
            + "Adults: " + Adults.ToString() + "\n"
            + "Children: " + Children.ToString() + "\n"
            + "Pool: " + Pool.ToString() + "\n"
            + "Jacuzzi " + Jacuzzi.ToString() + "\n"
            + "Garden: " + Garden.ToString() + "\n"
            + "Beach: " + Beach.ToString() + "\n"
            + "Attractions: " + ChildrenAttractions.ToString() + "\n"
            + "Minimum price: " + minPrice.ToString() + "\n"
            + "Maximum price: " + maxPrice.ToString() + "\n");
 }
예제 #7
0
        public override string ToString()
        {
            return("Guest Request Key: " + GuestRequestKey.ToString() + "\n"
                   + "PrivateName: " + PrivateName.ToString() + "\n"
                   + "FamilyName: " + FamilyName.ToString() + "\n"
                   + "Area: " + Area.ToString() + "\n"
                   + "Sub Area: " + SubArea.ToString() + "\n"
                   + "Type: " + Type.ToString() + "\n"
                   + "Adults: " + Adults.ToString() + "\n"
                   + "Children: " + Children.ToString() + "\n"
                   + "Pool: " + Pool.ToString() + "\n"
                   + "Jacuzzi " + Jacuzzi.ToString() + "\n"
                   + "Garden: " + Garden.ToString() + "\n"
                   + "Status: " + Status.ToString() + "\n"
                   + "Mail Address: " + MailAddress.ToString() + "\n"
                   + "Registration Date:  " + RegistrationDate.ToString() + "\n"
                   + "EntryDate: " + EntryDate.ToString() + "\n"
                   + "ReleaseDate: " + ReleaseDate.ToString() + "\n"

                   + "Synagogue: " + Synagogue.ToString() + "\n"
                   + "Childrens Attractions:  " + ChildrensAttractions.ToString() + "\n"
                   );
        }
예제 #8
0
        public override string ToString()
        {
            string s;

            /*$@"status : {Status}
             * GuestRequestKey : {GuestRequestKey}
             * MailAddress: {MailAddress}
             * Status:*/
            string information;

            information = " GuestRequestKey: " + GuestRequestKey.ToString() + ',' + guest.ToString();
            // information += " PrivateName: " + PrivateName + ','+" FamilyName: " + FamilyName + ',';
            // information += " MailAddress: " + MailAddress + '\n';
            switch ((int)Status)
            {
            case 0:
                information += " status: open,";
                break;

            case 1:
                information += " status: a deal was closed through the site,";
                break;

            case 2:
                information += " status: closed because it expired,";
                break;
            }
            information += " Registration Date: " + RegistrationDate.Day.ToString() + '.' + RegistrationDate.Month.ToString() + '.' + RegistrationDate.Year.ToString() + ',';
            information += " Entry Date: " + EntryDate.Day.ToString() + '.' + EntryDate.Month.ToString() + ',' + EntryDate.Year.ToString() + ',';
            information += " release date: " + ReleaseDate.Day.ToString() + ',' + ReleaseDate.Month.ToString() + ',' + ReleaseDate.Year.ToString() + '\n';
            information += " Area: " + Area.ToString() + ',' + " SubArea: " + SubArea.ToString() + ',';
            information += " Type: " + Type.ToString() + ',';
            information += " Adults: " + Adults.ToString() + ',' + " Children:" + Children.ToString() + ',';
            information += " pool:" + Pool.ToString() + ',' + " Jacuzz:" + Jacuzz.ToString() + ',' + " Garden:" + Garden.ToString() + ',' + " ChildrensAttractions:" + ChildrensAttractions.ToString() + ',';
            return(information);
        }
예제 #9
0
        /*public bool this[DateTime i]
         * {
         *  get { return Diary[i.Month - 1, i.Day - 1]; }
         *  set { Diary[i.Month - 1, i.Day - 1] = value; }
         * }*/
        public override string ToString()
        {
            string s = "HostingUnitKey: " + HostingUnitKey.ToString() + '\n' + " Owner: " + Owner.ToString() + '\n' + " HostingUnitName: " + HostingUnitName + "HostingUnitType" + Type + "\nArea: " + "SubArea: " + SubArea + Area.ToString() + "\nJacuzzi: " + Jacuzz + "\nPool: " + Pool + '\n';

            return(s);
        }
예제 #10
0
 public override string ToString()
 {
     return($"Name: {Name}, Degree: {Degree.ToString()}, Area: {Area.ToString()}");
 }
예제 #11
0
 public override string ToString()
 {
     return(PrivateName.ToString() + FamilyName.ToString() + MailAddress.ToString() + Status.ToString() +
            RegistrationDate.ToString() + EntryDate.ToString() + ReleaseDate.ToString() + Area.ToString() +
            Type.ToString() + Adults.ToString() + Children.ToString() + Pool.ToString() + Jacuzzi.ToString()
            + Garden.ToString() + ChildrensAttractions.ToString());
 }