Exemplo n.º 1
0
        /**********************************************************************************/

        protected virtual void OnFullNameChanged(NewNameEventArgs e)
        {
            EventHandler <NewNameEventArgs> handler = FullNameChanged;

            if (handler != null)
            {  // If someone subscribed to event
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        /**********************************************************************************/

        protected virtual void OnNameChanged(NewNameEventArgs e)
        {
            EventHandler <NewNameEventArgs> handler = NameChanged;

            if (handler != null)                 // If someone subscribed to event
            {
                handler(this, e);
            }

            string old_full_name = string.Format("{0} {1}", Producer, e.OldName);

            OnFullNameChanged(new NewNameEventArgs(old_full_name));
        }