Ejemplo n.º 1
0
        public static AnalysisWindow CreateAnalysisWindow(Demo demo)
        {
            AnalysisWindow window = null;

            switch (demo.Engine)
            {
            case Demo.Engines.HalfLife:
            case Demo.Engines.HalfLifeSteam:
                window = new HalfLifeAnalysisWindow(demo);
                break;

            case Demo.Engines.Source:
                window = new SourceAnalysisWindow(demo);
                break;
            }

            if (window == null)
            {
                return(null);
            }

            //window.SetDemo(demo);
            return(window);
        }
        public static AnalysisWindow CreateAnalysisWindow(Demo demo)
        {
            AnalysisWindow window = null;

            switch (demo.Engine)
            {
                case Demo.Engines.HalfLife:
                case Demo.Engines.HalfLifeSteam:
                    window = new HalfLifeAnalysisWindow(demo);
                    break;

                case Demo.Engines.Source:
                    window = new SourceAnalysisWindow(demo);
                    break;
            }

            if (window == null)
            {
                return null;
            }

            //window.SetDemo(demo);
            return window;
        }