Example #1
0
 private void fillDialogWithData()
 {
     if (currentLayer != null)
     {
         this.settingsWhiteIsTP.Checked = currentLayer.WhiteIsTransparent;
         this.layerNameTextBox.Text     = currentLayer.LayerName;
         this.layerCommentTextBox.Text  = currentLayer.Comment;
         this.layerFileNameLabel.Text   = currentLayer.FileName;
         this.layerFilePathLabel.Text   = currentLayer.FilePath;
         this.layerShapeTypeLabel.Text  = "Bild";
         this.layerMinXLabel.Text       = currentLayer.BoundingBox.Left.ToString();
         this.layerMinYLabel.Text       = currentLayer.BoundingBox.Bottom.ToString();
         this.layerMaxXLabel.Text       = currentLayer.BoundingBox.Right.ToString();
         this.layerMaxYLayer.Text       = currentLayer.BoundingBox.Top.ToString();
         this.layerWidthLabel.Text      = currentLayer.Width.ToString();
         this.layerHeightLabel.Text     = currentLayer.Height.ToString();
         this.resXField.Text            = currentLayer.ResolutionX.ToString();
         this.resYField.Text            = currentLayer.ResolutionY.ToString();
     }
     else
     {
         MessageBox.Show("Fehler beim Lesen von Shape");
         mainControler.addLogMessage("[LayerEdit] Fehler beim Lesen von Bild");
         currentLayer = null;
     }
 }