Commit 91b15ea

mo <email@solidware.ca>
2011-03-29 03:39:09
format the message that is displayed in the toast popups.
1 parent eb992c0
Changed files (3)
product/desktop.ui/handlers/PublishEventHandler.cs
@@ -21,7 +21,7 @@ namespace solidware.financials.windows.ui.handlers
             event_aggregator.publish(item);
             region_manager.region<TrayIcon>(x =>
             {
-                x.Say("Received {0}".format(item));
+                x.Say("{0}".format(item));
             });
         }
     }
product/messages/AddedNewFamilyMember.cs
@@ -1,4 +1,5 @@
 using System;
+using gorilla.utility;
 using solidware.financials.infrastructure.eventing;
 
 namespace solidware.financials.messages
@@ -8,5 +9,10 @@ namespace solidware.financials.messages
         public Guid id { get; set; }
         public string first_name { get; set; }
         public string last_name { get; set; }
+
+        public override string ToString()
+        {
+            return "Welcome to the family {0} {1}".format(first_name, last_name);
+        }
     }
 }
\ No newline at end of file
product/messages/AddIncomeCommandMessage.cs
@@ -14,5 +14,10 @@ namespace solidware.financials.messages
     {
         public Guid PersonId { get; set; }
         public decimal Amount { get; set; }
+
+        public override string ToString()
+        {
+            return "You got paid {0:C}!".format(Amount);
+        }
     }
 }
\ No newline at end of file