This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TabControl TabStripPlacement="Left" Height="200"> | |
<TabControl.Template> | |
<ControlTemplate TargetType="TabControl"> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto"/> | |
<ColumnDefinition /> | |
</Grid.ColumnDefinitions> | |
<ScrollViewer | |
HorizontalScrollBarVisibility="Disabled" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Moq; | |
using Xunit; | |
namespace UnitTests | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool CheckFolderPermission(string folderPath) | |
{ | |
DirectoryInfo dirInfo = new DirectoryInfo(folderPath); | |
try | |
{ | |
DirectorySecurity dirAC = dirInfo.GetAccessControl(AccessControlSections.All); | |
return true; | |
} | |
catch (UnauthorizedAccessException) | |
{ |