예제 #1
0
파일: messages.cs 프로젝트: bearls/LAb7_4
 public Messages(DatingProfile sender, string messageTitle, string messageData)
 {
     this.sender       = sender;
     this.messageTitle = messageTitle;
     this.messageData  = messageData;
     isRead            = false;
 }
예제 #2
0
        static void Main(string[] args)
        {
            DatingProfile andy = new DatingProfile("Andy", "Stitzer", 40, "Male");

            andy.WriteBio("Love collecting action figures.");

            DatingProfile trish = new DatingProfile("Trish", "Piedmont", 40, "Female");

            trish.WriteBio("Hot Milf");

            andy.SendMessage("Hello Trish", "Im a virgin.", trish);
            trish.ReadMessage();
        }
예제 #3
0
        public void SendMessage(string messageTitle, string messageData, DatingProfile sentTo)
        {
            messages message = new messages(this, messageTitle, messageData);

            sentTo.AddToInbox(message);
        }