Ejemplo n.º 1
0
        public void ChangePresentation(IPresentation presentation)
        {
            if (presentation != CurrentPresentation)
            {
                //1. Detach the current presentation.
                if (CurrentPresentation != null)
                {
                    CurrentPresentation.Detach();
                }

                //2. Load the new theme.
                if (presentation != null)
                {
                    presentation.Attach();
                }

                //3. Restore the current theme.
                CurrentPresentation = presentation;
            }
        }
Ejemplo n.º 2
0
        public void ChangePresentation(IPresentation presentation)
        {
            if (presentation != CurrentPresentation)
            {
                //1. Detach the current presentation.
                if (CurrentPresentation != null)
                {
                    CurrentPresentation.Detach();
                }

                //2. Load the new theme.
                if (presentation != null)
                {
                    presentation.Attach();
                }

                //3. Restore the current theme.
                CurrentPresentation = presentation;
            }
        }