public void SetSourceObject(Object pSource, MLCHARGENLib.CoMLCharGen pCG)
        {
            //try
            //{
            sourceObj = pSource;
            m_objEditor.SetSourceObject(pSource, pCG);
            m_objEditor.UpdateItemsList();
            List <CGBaseItem> items = m_objEditor.CGItems;

            this.listBoxItems.Items.Clear();
            this.listBoxItems.Items.AddRange(items.ToArray());

            //this.listBoxItems.DataSource = items;
            //}
            //catch (System.Exception) { }
        }
Beispiel #2
0
        public Object SetSourceObject(Object pSource, MLCHARGENLib.CoMLCharGen pCG)
        {
            Object pOld = (Object)m_objSource;

            try
            {
                m_objSource = pSource;
                if (m_objSource != null && pCG != null)
                {
                    CGObject = pCG;
                    UpdateItemsList();
                    Thread workingThread = new Thread(CgEditorBody);
                    isThreadWorking = true;
                    workingThread.Start();
                }

                m_CopyList    = new List <CopyItem>();
                m_nPasteCount = 0;
            }
            catch (System.Exception) { }

            return(pOld);
        }