Esempio n. 1
0
        protected override void ProcessMessage(Common.Notification.EnumNotificationMessage <object, Actions> message)
        {
            switch (message.Action)
            {
            case Actions.SmileManagement:
                if (smileControl == null)
                {
                    smileControl = new SmileManagement();
                }
                mainContent.Content = smileControl;
                break;

            case Actions.StampManagement:
                if (stampControl == null)
                {
                    stampControl = new StampManagement();
                }
                mainContent.Content = stampControl;
                break;

            case Actions.ImportGif:
                ImportGif();
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
        protected override void ProcessMessage(Common.Notification.EnumNotificationMessage<object, Actions> message)
        {
            switch (message.Action)
            {
                case Actions.SmileManagement:
                    if (smileControl == null)
                    {
                        smileControl = new SmileManagement();
                    }
                    mainContent.Content = smileControl;
                    break;
                case Actions.StampManagement:
                    if (stampControl == null)
                    {
                        stampControl = new StampManagement();
                    }
                    mainContent.Content = stampControl;
                    break;
                case Actions.ImportGif:
                    ImportGif();
                    break;
                default:
                    break;

            }
        }