public static ISpectralAnalysisWriter Create(AlignmentFigureType type, string name)
 {
     ISpectralAnalysisWriter writer = null;
     switch (type)
     {
         case AlignmentFigureType.Figure1:
             writer = new SpectralWriterFigureOne(name, BasePath);
             break;
         case AlignmentFigureType.Figure2:
             writer = new SpectralWriterFigureTwo(name, BasePath);
             break;
         case AlignmentFigureType.Figure3:
             writer = new SpectralWriterFigureThree(name, BasePath);
             break;
     }
     return writer;
 }
예제 #2
0
        public static ISpectralAnalysisWriter Create(AlignmentFigureType type, string name)
        {
            ISpectralAnalysisWriter writer = null;

            switch (type)
            {
            case AlignmentFigureType.Figure1:
                writer = new SpectralWriterFigureOne(name, BasePath);
                break;

            case AlignmentFigureType.Figure2:
                writer = new SpectralWriterFigureTwo(name, BasePath);
                break;

            case AlignmentFigureType.Figure3:
                writer = new SpectralWriterFigureThree(name, BasePath);
                break;
            }
            return(writer);
        }