Skip to content

Commit

Permalink
Move... while moving on the same disk
Browse files Browse the repository at this point in the history
  • Loading branch information
imDema committed Jul 14, 2017
1 parent eee8046 commit 16d4854
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions FreeMove/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ private void Button_Move_Click(object sender, EventArgs e)
{
try
{
button_Move.Text = "Moving...";
Enabled = false;
Directory.Move(source, destination);
success = true;
}
Expand All @@ -217,6 +219,11 @@ private void Button_Move_Click(object sender, EventArgs e)
Unauthorized(ex);
success = false;
}
finally
{
button_Move.Text = "Move";
Enabled = true;
}
}
else
{
Expand Down

0 comments on commit 16d4854

Please sign in to comment.