Beispiel #1
0
        /// <summary>
        /// creates new case analysis view
        /// </summary>
        /// <param name="analysis"></param>
        /// <returns></returns>
        public DockContentBoxCasePalletAnalysis CreateCaseAnalysisView(BoxCasePalletAnalysis analysis)
        {
            // check if analysis has valid solutions
            if (!analysis.HasValidSolutions)
            {
                MessageBox.Show(string.Format(Properties.Resources.ID_ANALYSISHASNOVALIDSOLUTION, analysis.Name));
                return(null);
            }
            // show Box/Case/Pallet analysis view
            DockContentBoxCasePalletAnalysis form = new DockContentBoxCasePalletAnalysis(this, analysis);

            AddView(form);
            return(form);
        }
 /// <summary>
 /// creates new case analysis view
 /// </summary>
 /// <param name="analysis"></param>
 /// <returns></returns>
 public DockContentBoxCasePalletAnalysis CreateCaseAnalysisView(BoxCasePalletAnalysis analysis)
 {
     // check if analysis has valid solutions
     if (!analysis.HasValidSolutions)
     {
         MessageBox.Show(string.Format(Properties.Resources.ID_ANALYSISHASNOVALIDSOLUTION, analysis.Name));
         return null;
     }
     // show Box/Case/Pallet analysis view
     DockContentBoxCasePalletAnalysis form = new DockContentBoxCasePalletAnalysis(this, analysis);
     AddView(form);
     return form;
 }