private void btBitmaps_Click(object sender, EventArgs e)
 {
     try
     {
         FormEditBitmaps form = new FormEditBitmaps(_caseOfBoxesProperties);
         form.Textures = _textures;
         if (DialogResult.OK == form.ShowDialog())
         {
             _textures = form.Textures;
         }
         graphCtrlBoxCase.Invalidate();
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
 }
Example #2
0
 private void OnEditTextures(object sender, EventArgs e)
 {
     try
     {
         FormEditBitmaps form = new FormEditBitmaps(BoxLength, BoxWidth, BoxHeight, _faceColors, _textures)
         {
             TapeWidth = TapeWidth,
             TapeColor = TapeColor,
         };
         if (DialogResult.OK == form.ShowDialog())
         {
             _textures = form.Textures;
         }
         graphCtrl.Invalidate();
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
 }
 private void btBitmaps_Click(object sender, EventArgs e)
 {
     try
     {
         FormEditBitmaps form = new FormEditBitmaps(_caseOfBoxesProperties);
         form.Textures = _textures;
         if (DialogResult.OK == form.ShowDialog())
             _textures = form.Textures;
         graphCtrlBoxCase.Invalidate();
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
 }