예제 #1
0
 private void btBitmaps_Click(object sender, EventArgs e)
 {
     try
     {
         FormEditBitmaps form = null;
         if (null == _boxProperties)
         {
             form = new FormEditBitmaps(BoxLength, BoxWidth, BoxHeight, _faceColors);
         }
         else
         {
             form = new FormEditBitmaps(_boxProperties);
         }
         form.Textures = _textures;
         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());
     }
 }
예제 #3
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());
     }
 }
예제 #4
0
 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());
     }
 }
예제 #5
0
 private void btBitmaps_Click(object sender, EventArgs e)
 {
     try
     {
         FormEditBitmaps form = null;
         if (null == _boxProperties)
             form = new FormEditBitmaps(BoxLength, BoxWidth, BoxHeight, _faceColors);
         else
             form = new FormEditBitmaps(_boxProperties);
         form.Textures = _textures;
         if (DialogResult.OK == form.ShowDialog())
             _textures = form.Textures;
         graphCtrl.Invalidate();
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
 }