Esempio n. 1
0
        public IEnumerable <IDestination> Destinations()
        {
            IDestination destination = null;

            try {
                destination = new ExcelDestination();
            } catch {
                destination = null;
            }
            if (destination != null)
            {
                yield return(destination);
            }

            try {
                destination = new PowerpointDestination();
            } catch {
                destination = null;
            }
            if (destination != null)
            {
                yield return(destination);
            }

            try {
                destination = new WordDestination();
            } catch {
                destination = null;
            }
            if (destination != null)
            {
                yield return(destination);
            }

            try {
                destination = new OutlookDestination();
            } catch {
                destination = null;
            }
            if (destination != null)
            {
                yield return(destination);
            }

            try {
                destination = new OneNoteDestination();
            } catch {
                destination = null;
            }
            if (destination != null)
            {
                yield return(destination);
            }
        }
Esempio n. 2
0
        public IEnumerable<IDestination> Destinations()
        {
            IDestination destination = null;
            try {
                destination = new ExcelDestination();
            } catch {
                destination = null;
            }
            if (destination != null) {
                yield return destination;
            }

            try {
                destination = new PowerpointDestination();
            } catch {
                destination = null;
            }
            if (destination != null) {
                yield return destination;
            }

            try {
                destination = new WordDestination();
            } catch {
                destination = null;
            }
            if (destination != null) {
                yield return destination;
            }

            try {
                destination = new OutlookDestination();
            } catch {
                destination = null;
            }
            if (destination != null) {
                yield return destination;
            }

            try {
                destination = new OneNoteDestination();
            } catch {
                destination = null;
            }
            if (destination != null) {
                yield return destination;
            }
        }