BF2Statistics.SnapshotViewForm.MoveSnapshotMenuItem_Click C# (CSharp) Method

MoveSnapshotMenuItem_Click() private method

Event fired when the Move Snapshot menu item is clicked from the drop down menu (right click)
private MoveSnapshotMenuItem_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        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();
        }