private void btnOpenImageFile_Click(object sender, EventArgs e) { string fullPath = ""; FileIOHelper.CallOpenFileDialog("Select single photo" , "png|*.png|jpg|*.jpg|bmp|*.bmp" , out fullPath); try { FileIOHelper.FileExist(fullPath); } catch (NullReferenceException) { MessageBox.Show("Exception Message", string.Format("No found the file.Path: {0}", fullPath)); return; } _img = ECVFactory.CreateImageWrappData(fullPath); OnShowDisplayImage(_img.BitmapImageClone); }