Skip to content

Commit

Permalink
new fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashrafnet committed Feb 4, 2017
1 parent 77836ad commit a828f32
Show file tree
Hide file tree
Showing 319 changed files with 286 additions and 46,324 deletions.
3 changes: 2 additions & 1 deletion FolderMonitor.UI/ConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ void SetUserAccount(string username,string password)
cmd += "password= " + password;
var i = new Tools.Impersonator(username, null, password);
i.Dispose();
}else
}
else
cmd += "obj= " + drpAccount.Text.Trim().Replace (" ","") ;
var process = new Process();
// process.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
Expand Down
2 changes: 1 addition & 1 deletion FolderMonitor.UI/ExcludedItemsControl.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FolderMonitor.UI/ExcludedItemsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System.IO;
using System.Windows.Forms;

namespace RoboMirror.GUI
namespace FolderMonitor.UI
{
public partial class ExcludedItemsControl : UserControl
{
Expand Down
12 changes: 6 additions & 6 deletions FolderMonitor.UI/ExcludedItemsDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FolderMonitor.UI/FileDropTargetWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System.Text;
using System.Windows.Forms;

namespace RoboMirror
namespace FolderMonitor
{
[Flags]
public enum FileDropMode
Expand Down
192 changes: 45 additions & 147 deletions FolderMonitor.UI/FolderMonitor.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,162 +79,57 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\FolderMonitor\AlphaFS\NativeError.cs">
<Link>AlphaFS\NativeError.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\DfsInfo.cs">
<Link>AlphaFS\Network\DfsInfo.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\DfsStorageInfo.cs">
<Link>AlphaFS\Network\DfsStorageInfo.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\AccessPermissions.cs">
<Link>AlphaFS\Network\Enumerations\AccessPermissions.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\Connect.cs">
<Link>AlphaFS\Network\Enumerations\Connect.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\DfsNamespaceFlavors.cs">
<Link>AlphaFS\Network\Enumerations\DfsNamespaceFlavors.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\DfsPropertyFlags.cs">
<Link>AlphaFS\Network\Enumerations\DfsPropertyFlags.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\DfsStorageStates.cs">
<Link>AlphaFS\Network\Enumerations\DfsStorageStates.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\DfsTargetPriorityClass.cs">
<Link>AlphaFS\Network\Enumerations\DfsTargetPriorityClass.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\DfsVolumeStates.cs">
<Link>AlphaFS\Network\Enumerations\DfsVolumeStates.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ResourceDisplayType.cs">
<Link>AlphaFS\Network\Enumerations\ResourceDisplayType.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ResourceScope.cs">
<Link>AlphaFS\Network\Enumerations\ResourceScope.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ResourceType.cs">
<Link>AlphaFS\Network\Enumerations\ResourceType.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ResourceUsage.cs">
<Link>AlphaFS\Network\Enumerations\ResourceUsage.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ShareInfoLevel.cs">
<Link>AlphaFS\Network\Enumerations\ShareInfoLevel.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ShareResourceTypes.cs">
<Link>AlphaFS\Network\Enumerations\ShareResourceTypes.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Enumerations\ShareType.cs">
<Link>AlphaFS\Network\Enumerations\ShareType.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Host Class\Connect.cs">
<Link>AlphaFS\Network\Host Class\Connect.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Host Class\DriveConnection.cs">
<Link>AlphaFS\Network\Host Class\DriveConnection.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Host Class\EnumerateDrives.cs">
<Link>AlphaFS\Network\Host Class\EnumerateDrives.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Host Class\EnumerateOpenResources.cs">
<Link>AlphaFS\Network\Host Class\EnumerateOpenResources.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Host Class\Host.cs">
<Link>AlphaFS\Network\Host Class\Host.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Host Class\ServerMessageBlock.cs">
<Link>AlphaFS\Network\Host Class\ServerMessageBlock.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Methods\NativeMethods.cs">
<Link>AlphaFS\Network\Native Methods\NativeMethods.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Methods\NativeMethods.WindowsNetworking.cs">
<Link>AlphaFS\Network\Native Methods\NativeMethods.WindowsNetworking.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\CONNECTION_INFO_1.cs">
<Link>AlphaFS\Network\Native Structures\CONNECTION_INFO_1.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\DFS_INFO_200.cs">
<Link>AlphaFS\Network\Native Structures\DFS_INFO_200.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\DFS_INFO_300.cs">
<Link>AlphaFS\Network\Native Structures\DFS_INFO_300.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\DFS_INFO_9.cs">
<Link>AlphaFS\Network\Native Structures\DFS_INFO_9.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\DFS_STORAGE_INFO_1.cs">
<Link>AlphaFS\Network\Native Structures\DFS_STORAGE_INFO_1.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\DFS_TARGET_PRIORITY.cs">
<Link>AlphaFS\Network\Native Structures\DFS_TARGET_PRIORITY.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\FILE_INFO_3.cs">
<Link>AlphaFS\Network\Native Structures\FILE_INFO_3.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\NETRESOURCE.cs">
<Link>AlphaFS\Network\Native Structures\NETRESOURCE.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\REMOTE_NAME_INFO.cs">
<Link>AlphaFS\Network\Native Structures\REMOTE_NAME_INFO.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\SHARE_INFO_1.cs">
<Link>AlphaFS\Network\Native Structures\SHARE_INFO_1.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\SHARE_INFO_1005.cs">
<Link>AlphaFS\Network\Native Structures\SHARE_INFO_1005.cs</Link>
<Compile Include="..\FolderMonitor\clsEncrypt.cs">
<Link>clsEncrypt.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\SHARE_INFO_2.cs">
<Link>AlphaFS\Network\Native Structures\SHARE_INFO_2.cs</Link>
<Compile Include="..\FolderMonitor\Impersonator.cs">
<Link>Impersonator.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\Native Structures\SHARE_INFO_503.cs">
<Link>AlphaFS\Network\Native Structures\SHARE_INFO_503.cs</Link>
<Compile Include="..\FolderMonitor\MyExtensions.cs">
<Link>MyExtensions.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\OpenConnectionInfo.cs">
<Link>AlphaFS\Network\OpenConnectionInfo.cs</Link>
<Compile Include="..\FolderMonitor\Network\Connect.cs">
<Link>Network\Connect.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\OpenResourceInfo.cs">
<Link>AlphaFS\Network\OpenResourceInfo.cs</Link>
<Compile Include="..\FolderMonitor\Network\Enums\Connect.cs">
<Link>Network\Enums\Connect.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Network\ShareInfo.cs">
<Link>AlphaFS\Network\ShareInfo.cs</Link>
<Compile Include="..\FolderMonitor\Network\Enums\ResourceDisplayType.cs">
<Link>Network\Enums\ResourceDisplayType.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\OperatingSystem.cs">
<Link>AlphaFS\OperatingSystem.cs</Link>
<Compile Include="..\FolderMonitor\Network\Enums\ResourceScope.cs">
<Link>Network\Enums\ResourceScope.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Resources.Designer.cs">
<Link>AlphaFS\Resources.Designer.cs</Link>
<Compile Include="..\FolderMonitor\Network\Enums\ResourceType.cs">
<Link>Network\Enums\ResourceType.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\SafeGlobalMemoryBufferHandle.cs">
<Link>AlphaFS\SafeGlobalMemoryBufferHandle.cs</Link>
<Compile Include="..\FolderMonitor\Network\Enums\ResourceUsage.cs">
<Link>Network\Enums\ResourceUsage.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\SafeNativeMemoryBufferHandle.cs">
<Link>AlphaFS\SafeNativeMemoryBufferHandle.cs</Link>
<Compile Include="..\FolderMonitor\Network\Native Structures\NETRESOURCE.cs">
<Link>Network\Native Structures\NETRESOURCE.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Utils.cs">
<Link>AlphaFS\Utils.cs</Link>
<Compile Include="..\FolderMonitor\Network\NativeMethods.WindowsNetworking.cs">
<Link>Network\NativeMethods.WindowsNetworking.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\AlphaFS\Win32Errors.cs">
<Link>AlphaFS\Win32Errors.cs</Link>
<Compile Include="..\FolderMonitor\Network\Resources.Designer.cs">
<Link>Network\Resources.Designer.cs</Link>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="..\FolderMonitor\clsEncrypt.cs">
<Link>clsEncrypt.cs</Link>
<Compile Include="..\FolderMonitor\Network\SafeGlobalMemoryBufferHandle.cs">
<Link>Network\SafeGlobalMemoryBufferHandle.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\Impersonator.cs">
<Link>Impersonator.cs</Link>
<Compile Include="..\FolderMonitor\Network\SafeNativeMemoryBufferHandle.cs">
<Link>Network\SafeNativeMemoryBufferHandle.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\MyExtensions.cs">
<Link>MyExtensions.cs</Link>
<Compile Include="..\FolderMonitor\Network\Win32Errors.cs">
<Link>Network\Win32Errors.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\PathCredentials.cs">
<Link>PathCredentials.cs</Link>
</Compile>
<Compile Include="..\FolderMonitor\UNCAccessWithCredentials.cs">
<Link>UNCAccessWithCredentials.cs</Link>
</Compile>
<Compile Include="ConfigService.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -254,6 +149,7 @@
<DependentUpon>ExcludedItemsDialog.cs</DependentUpon>
</Compile>
<Compile Include="FileDropTargetWrapper.cs" />
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="NewTask.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -277,13 +173,20 @@
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="ServiceConfig.cs" />
<Compile Include="ServiceManager.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="WindowsServicesHelper.cs" />
<EmbeddedResource Include="..\FolderMonitor\AlphaFS\Resources.resx">
<Link>AlphaFS\Resources.resx</Link>
<EmbeddedResource Include="..\FolderMonitor\Network\Resources.resx">
<Link>Network\Resources.resx</Link>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="ConfigService.resx">
<DependentUpon>ConfigService.cs</DependentUpon>
Expand All @@ -305,14 +208,9 @@
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.manifest" />
<None Include="Ashrafnet.snk" />
<None Include="FolderMonitor.UI_TemporaryKey.pfx" />
Expand Down Expand Up @@ -361,8 +259,8 @@
</ItemGroup>
<ItemGroup>
<Content Include="appico.ico" />
<None Include="bin\Release\FolderMonitor.exe" />
<None Include="Resources\FolderMonitor.exe" />
<None Include="bin\Release\FolderMonitor.exe" />
<None Include="bin\Debug\FolderMonitor.exe" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Binary file added FolderMonitor.UI/GlobalSuppressions.cs
Binary file not shown.
2 changes: 2 additions & 0 deletions FolderMonitor.UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ private void stopservice_Click(object sender, EventArgs e)
{
_service.Stop();
}
#pragma warning disable CS0168 // The variable 'er' is declared but never used
catch (Exception er)
#pragma warning restore CS0168 // The variable 'er' is declared but never used
{
_service.Refresh();
if (_service.Status != ServiceControllerStatus.Stopped && _service.Status != ServiceControllerStatus.StopPending)
Expand Down
2 changes: 1 addition & 1 deletion FolderMonitor.UI/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,6 @@
<value>..\Resources\Robocopy.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="FolderMonitor" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\FolderMonitor.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>..\Resources\FolderMonitor.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
Binary file modified FolderMonitor.UI/Resources/FolderMonitor.exe
Binary file not shown.
Loading

0 comments on commit a828f32

Please sign in to comment.