private void MoveSnapshotMenuItem_Click(object sender, EventArgs e)
{
// Get our snapshot file name
SnapshotFile sFile = SnapshotView.SelectedItems[0].Tag as SnapshotFile;
if (sFile == null) return;
// Move the selected snapshot to the opposite folder
if (ViewSelect.SelectedIndex == 0)
{
File.Move(
Path.Combine(Paths.SnapshotTempPath, sFile.FileName),
Path.Combine(Paths.SnapshotProcPath, sFile.FileName)
);
}
else
{
File.Move(
Path.Combine(Paths.SnapshotProcPath, sFile.FileName),
Path.Combine(Paths.SnapshotTempPath, sFile.FileName)
);
}
BuildList();
}