예제 #1
0
        private void ImageViewer_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (image.SizeCoordinates.NotEqual(sizeCoordinates))
            {
                image.SizeCoordinates = sizeCoordinates;
                image.ImageSize       = imageSize;
                dbConn.ImagesUpdateImageSize(image.ImageFileName, sizeCoordinates, imageSize);
            }

            dbConn.Close();
            dbConn = null;
            GC.Collect();
        }