Ejemplo n.º 1
0
        private static void NotificationMessageReceived(NotificationMessage notificationMessage)
        {
            if (notificationMessage.Notification == MessageNames.OpenPatternsAndPalettes)
            {
                var patternsAndPalettes = new PatternsAndPalettes();

                patternsAndPalettes.Closing += (sender, args) => Messenger.Default.Unregister(patternsAndPalettes);
                patternsAndPalettes.Show();
            }

            if (notificationMessage.Notification == MessageNames.OpenNameTables)
            {
                var nameTables = new NameTables();

                nameTables.Closing += (sender, args) => Messenger.Default.Unregister(nameTables);
                nameTables.Show();
            }

            if (notificationMessage.Notification == MessageNames.OpenSprites)
            {
                var sprites = new Sprites();

                sprites.Closing += (sender, args) => Messenger.Default.Unregister(sprites);
                sprites.Show();
            }

            if (notificationMessage.Notification == MessageNames.OpenDebugger)
            {
                var debugger = new Debugger();

                debugger.Closing += (sender, args) => Messenger.Default.Unregister(debugger);
                debugger.Show();
            }
        }
Ejemplo n.º 2
0
        private static void NotificationMessageReceived(NotificationMessage notificationMessage)
        {
            if (notificationMessage.Notification == MessageNames.OpenPatternsAndPalettes)
            {
                var patternsAndPalettes = new PatternsAndPalettes();
                
                patternsAndPalettes.Closing += (sender, args) => Messenger.Default.Unregister(patternsAndPalettes);
                patternsAndPalettes.Show(); 
            }

            if (notificationMessage.Notification == MessageNames.OpenNameTables)
            {
                var nameTables = new NameTables();

                nameTables.Closing += (sender, args) => Messenger.Default.Unregister(nameTables);
                nameTables.Show();
            }
        }