示例#1
0
 public NestRstWatcher(NestProcessorEx nestProcessor, NestResult nestResult, int iNestingTime)
 {
     m_nestProcessor   = nestProcessor;
     m_nestResult      = nestResult;
     m_iNestingTime    = iNestingTime;
     m_iStartTickCount = System.Environment.TickCount;
 }
示例#2
0
        private void executeBtn_Click(object sender, EventArgs e)
        {
            // check
            if (m_nestPartList.Size() == 0)
            {
                MessageBox.Show("没有需要排版的零件!!!");
                return;
            }
            if (m_matList.Size() == 0)
            {
                MessageBox.Show("没有需要排版的材料!!!");
                return;
            }

            // create nest task object and execute it.
            NestTaskEx      nestTask      = new NestTaskEx(m_nestPartList, m_matList, m_nestParam);
            NestProcessorEx nestProcessor = NestFacadeEx.StartNest(nestTask);

            if (nestProcessor == null)
            {
                //MessageBox.Show("Cannot start the nesting task, please contact TAOSoft and check your license.");
                MessageBox.Show("没有排版的结果,请联系技术人员!!!");
                return;
            }

            // display the nesting result.
            NestResultForm form = new NestResultForm(nestTask, m_nestParam, nestProcessor, m_iNestingTime, m_impDataList, m_partColorConfig);

            form.ShowDialog();
        }
示例#3
0
        public NestResultForm(NestTaskEx nestTask, NestParamEx nestParam, NestProcessorEx nestProcessor, int iNestingTime, ImpDataListEx impDataList, Dictionary <long, int> partColorConfig)
        {
            m_nestTask        = nestTask;
            m_nestParam       = nestParam;
            m_nestProcessor   = nestProcessor;
            m_iNestingTime    = iNestingTime;
            m_impDataList     = impDataList;
            m_partColorConfig = partColorConfig;

            InitializeComponent();
        }