Beispiel #1
0
 private void onSendToDatabase(object sender, EventArgs e)
 {
     try
     {
         FormSetItemName form = new FormSetItemName()
         {
             ItemName = ItemName
         };
         if (DialogResult.OK == form.ShowDialog())
         {
             PLMPackServiceClient client = WCFClientSingleton.Instance.Client;
             client.CreateNewPalletFilm(new DCSBPalletFilm()
             {
                 Name            = form.ItemName,
                 Description     = ItemDescription,
                 UnitSystem      = (int)UnitsManager.CurrentUnitSystem,
                 UseTransparency = this.UseTransparency,
                 UseHatching     = this.UseHatching,
                 HatchingSpace   = HatchSpacing,
                 HatchingAngle   = HatchAngle,
                 Color           = FilmColor.ToArgb(),
                 AutoInsert      = false
             }
                                        );
             Close();
         }
     }
     catch (Exception ex)
     {
         _log.Error(ex.Message);
     }
 }