private void LoadImage(string path) { string imageFilePath = this.lastImagePath = path; if (this.lastImage != null) { this.lastImage.Dispose(); this.lastImage = null; } if (this.lastImagePath != null) { ImageChangedArgs args = new ImageChangedArgs(imageFilePath); this.lastImage = (Bitmap)args.Image.Clone(); this.LoadImage(args); this.EnableControls(); args.Dispose(); args = null; } }