internal PalletFilmProperties ToPalletFilm(DataPalletFilm dtPalletFilm) { return(new PalletFilmProperties(null, dtPalletFilm.Name, dtPalletFilm.Description , dtPalletFilm.Transparency, dtPalletFilm.Hatching , dtPalletFilm.Spacing, dtPalletFilm.Angle , Color.LightSkyBlue)); }
private void bnInsert_Click(object sender, EventArgs e) { if (null == _dt || null == _document) { return; } // Case DataCase dtCase = _dt as DataCase; if (null != dtCase) { _document.CreateNewCase(ToCase(dtCase)); } DataBox dtBox = _dt as DataBox; if (null != dtBox) { _document.CreateNewBox(ToBox(dtBox)); } DataCylinder dtCylinder = _dt as DataCylinder; if (null != dtCylinder) { _document.CreateNewCylinder(ToCylinder(dtCylinder)); } DataPallet dtPallet = _dt as DataPallet; if (null != dtPallet) { _document.CreateNewPallet(ToPallet(dtPallet)); } DataInterlayer dtInterlayer = _dt as DataInterlayer; if (null != dtInterlayer) { _document.CreateNewInterlayer(ToInterlayer(dtInterlayer)); } DataPalletCap dtPalletCap = _dt as DataPalletCap; if (null != dtPalletCap) { _document.CreateNewPalletCap(ToPalletCap(dtPalletCap)); } DataPalletFilm dtPalletFilm = _dt as DataPalletFilm; if (null != dtPalletFilm) { _document.CreateNewPalletFilm(ToPalletFilm(dtPalletFilm)); } }