private void button2_Click(object sender, EventArgs e) { ImageManager imageManager = new ImageManager(); CustomBrush = imageManager.Open(); if (CustomBrush != null) { this.brushPictureBox.Image = CustomBrush; this.widthNumericUpDown.Value = CustomBrush.Width; this.heightNumericUpDown.Value = CustomBrush.Height; } }
private void ShowOpenFileDialogAndAddImage() { ImageManager imageManager = new ImageManager(); Image image = imageManager.Open(); AddImageToCanvasToTabControl(imageManager.FileName, imageManager.FullFileName, image); }