private void DeleteDir_btn_Click(object sender, RoutedEventArgs e) { string enteredPath = GetEnteredPath(); if (pathIsEmpty()) { return; } dir.DeleteDirectory(enteredPath, log: true); }