Exemple #1
0
        //------------------------------- Messenger Events ---------------------------------------

        public static void MessengerOnContractCreated(object source, EventArgs e)
        {
            Messenger messenger = Messenger.Instance;
            var       contract  = (Contract)source;

            string owner = contract.Owner.UserName;

            messenger.AddToMessenger(DateTime.Now, "<b>" + owner + "</b>" + " hat neuen Vertrag erstellt");

            System.Diagnostics.Debug.WriteLine("Benachrichtigung sollte erscheinen");
        }