public void preview() { previewTranCon_.Reset(); try { foreach (DataRow row in TaskTable.Rows) { PenetrVueTask task = rowsToTasks_[row]; var penetration = new Penetration(task); penetration.AddProjection(); previewTranCon_.AppendCopyOfElement(penetration.GetElement()); foreach (BCOM.Element projElement in penetration.GetProjections()) { previewTranCon_.AppendCopyOfElement(projElement); } } } catch (Exception ex) // TODO { ex.AddToMessageCenter(); } //try //{ // //foreach (PenetrVueTask task in TaskSelection) // //{ // // PenetrInfo penInfo = penData_.getPenInfo( // // task.FlangesType, task.DiameterType.Number); // // TFCOM.TFFrameList frameList = // // PenetrHelper.createFrameList(task, penInfo, PenetrTaskBase.LevelMain); // // previewTranCon_.AppendCopyOfElement( // // frameList.AsTFFrame.Get3DElement()); // // var projList = frameList.AsTFFrame.GetProjectionList(); // // if (projList == null) // // continue; // // do // // { // // try // // { // // BCOM.Element projEl = null; // // projList.AsTFProjection.GetElement(out projEl); // // if(projEl != null) // // previewTranCon_.AppendCopyOfElement(projEl); // // } // // catch (Exception) { /* !не требует обработки */ } // // } while ((projList = projList.GetNext()) != null); // //} //} //catch (Exception ex) // TODO //{ // ex.AddToMessageCenter(); //} }