private void EncryptionList_MouseDoubleClick(object sender, MouseButtonEventArgs e) { foreach (ImageList item in EncryptionList.SelectedItems) { MessageBox.Show(item.MyImageName.Substring(0, item.MyImageName.Length - 4)); PasswordManager.DecryptFile(item.fullPath, @"." + decDirPath + item.MyImageName.Substring(0, item.MyImageName.Length - 4), pass); } System.Diagnostics.Process.Start("EXPLORER.EXE", @".\dec"); }