private void con_image_Click(object sender, EventArgs e) { if (openImageDialog.ShowDialog() != DialogResult.OK) { return; } this.Cursor = Cursors.AppStarting; AddPictures(openImageDialog.FileName); GC.Collect(); this.Cursor = Cursors.Default; }