예제 #1
0
        public DockContentView CreateViewAnalysis(Analysis analysis)
        {
            DockContentView form = null;

            if (analysis is AnalysisCasePallet)
            {
                form = new DockContentAnalysisCasePallet(this, analysis as AnalysisCasePallet);
            }
            else if (analysis is AnalysisBoxCase)
            {
                form = new DockContentAnalysisBoxCase(this, analysis as AnalysisBoxCase);
            }
            else if (analysis is AnalysisPalletTruck)
            {
                form = new DockContentAnalysisPalletTruck(this, analysis as AnalysisPalletTruck);
            }
            else if (analysis is AnalysisCylinderPallet)
            {
                form = new DockContentAnalysisCylinderPallet(this, analysis as AnalysisCylinderPallet);
            }
            else if (analysis is AnalysisCylinderCase)
            {
                form = new DockContentAnalysisCylinderCase(this, analysis as AnalysisCylinderCase);
            }
            else
            {
                _log.Error(string.Format("Analysis ({0}) type not handled", analysis.Name));
                return(null);
            }
            AddView(form);
            return(form);
        }
예제 #2
0
        public DockContentView CreateViewAnalysis(Analysis analysis)
        {
            DockContentView form;

            if (analysis is AnalysisCasePallet)
            {
                form = new DockContentAnalysisCasePallet(this, analysis as AnalysisCasePallet);
            }
            else if (analysis is AnalysisBoxCase)
            {
                form = new DockContentAnalysisBoxCase(this, analysis as AnalysisBoxCase);
            }
            else if (analysis is AnalysisCylinderPallet)
            {
                form = new DockContentAnalysisCylinderPallet(this, analysis as AnalysisCylinderPallet);
            }
            else if (analysis is AnalysisCylinderCase)
            {
                form = new DockContentAnalysisCylinderCase(this, analysis as AnalysisCylinderCase);
            }
            else if (analysis is AnalysisPalletTruck)
            {
                form = new DockContentAnalysisPalletTruck(this, analysis as AnalysisPalletTruck);
            }
            else if (analysis is AnalysisCaseTruck)
            {
                form = new DockContentAnalysisCaseTruck(this, analysis as AnalysisCaseTruck);
            }
            else if (analysis is AnalysisCylinderTruck)
            {
                form = new DockContentAnalysisCylinderTruck(this, analysis as AnalysisCylinderTruck);
            }
            else if (analysis is AnalysisHCylPallet)
            {
                form = new DockContentAnalysisHCylPallet(this, analysis as AnalysisHCylPallet);
            }
            else if (analysis is AnalysisHCylTruck)
            {
                form = new DockContentAnalysisHCylTruck(this, analysis as AnalysisHCylTruck);
            }
            else
            {
                _log.Error($"Analysis ({analysis.Name}) type not handled");
                return(null);
            }
            AddView(form);
            return(form);
        }