Exemplo n.º 1
0
        public DockContentView CreateViewHAnalysis(HAnalysis analysis)
        {
            DockContentView form = null;

            if (analysis is HAnalysisPallet)
            {
                form = new DockContentHAnalysisCasePallet(this, analysis);
            }
            else
            {
                _log.Error(string.Format("Analysis ({0}) type not handled", analysis.Name));
                return(null);
            }
            AddView(form);
            return(form);
        }
Exemplo n.º 2
0
        public DockContentView CreateViewHAnalysis(AnalysisHetero analysis)
        {
            DockContentView form = null;

            if (analysis is HAnalysisPallet)
            {
                form = new DockContentHAnalysisCasePallet(this, analysis);
            }
            else if (analysis is HAnalysisTruck)
            {
                form = new DockContentHAnalysisCaseTruck(this, analysis);
            }
            else
            {
                _log.Error($"Analysis ({analysis.Name}) type not handled");
                return(null);
            }
            AddView(form);
            return(form);
        }