mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-14 09:23:17 +12:00
parent
814908fdfe
commit
98a823f299
37
Config.cs
37
Config.cs
|
@ -45,29 +45,30 @@ namespace SystemTrayMenu
|
|||
{
|
||||
bool pathOK = false;
|
||||
bool userAborted = false;
|
||||
CommonOpenFileDialog dialog = new CommonOpenFileDialog
|
||||
using (CommonOpenFileDialog dialog = new CommonOpenFileDialog())
|
||||
{
|
||||
InitialDirectory = Path,
|
||||
IsFolderPicker = true
|
||||
};
|
||||
do
|
||||
{
|
||||
if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
|
||||
dialog.InitialDirectory = Path;
|
||||
dialog.IsFolderPicker = true;
|
||||
|
||||
do
|
||||
{
|
||||
if (Directory.Exists(dialog.FileName))
|
||||
if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
|
||||
{
|
||||
pathOK = true;
|
||||
Properties.Settings.Default.PathDirectory =
|
||||
dialog.FileName;
|
||||
Properties.Settings.Default.Save();
|
||||
if (Directory.Exists(dialog.FileName))
|
||||
{
|
||||
pathOK = true;
|
||||
Properties.Settings.Default.PathDirectory =
|
||||
dialog.FileName;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
userAborted = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
userAborted = true;
|
||||
}
|
||||
}
|
||||
while (!pathOK && !userAborted);
|
||||
while (!pathOK && !userAborted);
|
||||
};
|
||||
|
||||
return pathOK;
|
||||
}
|
||||
|
|
|
@ -124,9 +124,11 @@
|
|||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>ThirdParty\Clearcove.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>ThirdParty\Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
|
||||
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>packages\WindowsAPICodePack-Core.1.1.1\lib\Microsoft.WindowsAPICodePack.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>packages\WindowsAPICodePack-Shell.1.1.1\lib\Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
|
25496
ThirdParty/Microsoft.WindowsAPICodePack.Shell.XML
vendored
25496
ThirdParty/Microsoft.WindowsAPICodePack.Shell.XML
vendored
File diff suppressed because it is too large
Load diff
BIN
ThirdParty/Microsoft.WindowsAPICodePack.Shell.dll
vendored
BIN
ThirdParty/Microsoft.WindowsAPICodePack.Shell.dll
vendored
Binary file not shown.
BIN
ThirdParty/Microsoft.WindowsAPICodePack.dll
vendored
BIN
ThirdParty/Microsoft.WindowsAPICodePack.dll
vendored
Binary file not shown.
2934
ThirdParty/Microsoft.WindowsAPICodePack.xml
vendored
2934
ThirdParty/Microsoft.WindowsAPICodePack.xml
vendored
File diff suppressed because it is too large
Load diff
|
@ -5,4 +5,6 @@
|
|||
<package id="Microsoft.CodeQuality.Analyzers" version="2.9.6" targetFramework="net472" developmentDependency="true" />
|
||||
<package id="Microsoft.NetCore.Analyzers" version="2.9.6" targetFramework="net472" developmentDependency="true" />
|
||||
<package id="Microsoft.NetFramework.Analyzers" version="2.9.6" targetFramework="net472" developmentDependency="true" />
|
||||
<package id="WindowsAPICodePack-Core" version="1.1.1" targetFramework="net472" />
|
||||
<package id="WindowsAPICodePack-Shell" version="1.1.1" targetFramework="net472" />
|
||||
</packages>
|
Loading…
Reference in a new issue