示例#1
0
        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;
            }
        }
示例#2
0
 private void ShowOpenFileDialogAndAddImage()
 {
     ImageManager imageManager = new ImageManager();
     Image image = imageManager.Open();
     AddImageToCanvasToTabControl(imageManager.FileName, imageManager.FullFileName, image);
 }