Esempio 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;
            }
        }
Esempio 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;
            }
        }