-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,571 changed files
with
2,599 additions
and
250,971 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System; | ||
using System.IO; | ||
using System.Drawing; | ||
using System.Drawing.Imaging; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace LABLibary.Assistant | ||
{ | ||
public class DirectoryIconSetter | ||
{ | ||
[DllImport("shell32.dll", CharSet = CharSet.Unicode)] | ||
private static extern int SHGetSetFolderCustomSettings(ref SHFOLDERCUSTOMSETTINGS pfcs, string pszPath, uint dwReadWrite); | ||
|
||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] | ||
private struct SHFOLDERCUSTOMSETTINGS | ||
{ | ||
public uint dwSize; | ||
public uint dwMask; | ||
public IntPtr pvid; | ||
public string pszWebViewTemplate; | ||
public uint cchWebViewTemplate; | ||
public string pszWebViewTemplateVersion; | ||
public string pszInfoTip; | ||
public uint cchInfoTip; | ||
public IntPtr pclsid; | ||
public uint dwFlags; | ||
public string pszIconFile; | ||
public uint cchIconFile; | ||
public int iIconIndex; | ||
public string pszLogo; | ||
public uint cchLogo; | ||
} | ||
|
||
public static void SetDirectoryIcon(string directoryPath, string iconFilePath, int iconIndex) | ||
{ | ||
var settings = new SHFOLDERCUSTOMSETTINGS | ||
{ | ||
dwSize = (uint)Marshal.SizeOf(typeof(SHFOLDERCUSTOMSETTINGS)), | ||
dwMask = 0x10, | ||
pszIconFile = iconFilePath, | ||
cchIconFile = (uint)iconFilePath.Length, | ||
iIconIndex = iconIndex, | ||
pszLogo = null, | ||
cchLogo = 0 | ||
}; | ||
|
||
int result = SHGetSetFolderCustomSettings(ref settings, directoryPath, 0x02); | ||
if (result != 0) | ||
{ | ||
throw new ApplicationException("Failed to set the directory icon."); | ||
} | ||
} | ||
} | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
LABLibary/obj/Debug/net7.0/LABLibary.csproj.CoreCompileInputs.cache
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
685915e4a739142490e9cc5ac3d939afffc0c313 | ||
81e68d054c2716faed6a3b2b02f1c4ebd38277e1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Project/bin/Debug/net6.0-windows/ICSharpCode.TextEditor.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Project/bin/Debug/net6.0-windows/ICSharpCode.TextEditor.pdb
Binary file not shown.
7 changes: 4 additions & 3 deletions
7
Project/obj/Debug/net6.0-windows/ICSharpCode.TextEditor.AssemblyInfo.cs
This file contains 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
Binary file modified
BIN
+0 Bytes
(100%)
Project/obj/Debug/net6.0-windows/ICSharpCode.TextEditor.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Project/obj/Debug/net6.0-windows/ICSharpCode.TextEditor.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
Project/obj/Debug/net6.0-windows/ICSharpCode.TextEditor.sourcelink.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"documents":{"C:\\Users\\joeva\\Documents\\GitHub\\LILO-LocalServer\\*":"https://raw.githubusercontent.com/JW-Limited/LILO-LocalServer/2d227acc39eaa4f88492a68bbc3eba4223da73f3/*"}} | ||
{"documents":{"C:\\Users\\joeva\\Documents\\GitHub\\LILO-LocalServer\\*":"https://raw.githubusercontent.com/JW-Limited/LILO-LocalServer/c9fa9861ede324ee066611c9d9d4f0872993c84b/*"}} |
Binary file modified
BIN
+0 Bytes
(100%)
Project/obj/Debug/net6.0-windows/ref/ICSharpCode.TextEditor.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Project/obj/Debug/net6.0-windows/refint/ICSharpCode.TextEditor.dll
Binary file not shown.
This file contains 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
srvlocal/obj/Debug/net7.0-windows/srvlocal.csproj.AssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace srvlocal_gui.AppMananger | ||
{ | ||
public class Worker | ||
{ | ||
public class AppDomainWorker : MarshalByRefObject | ||
{ | ||
|
||
private static object _lock = new object(); | ||
private static AppDomainWorker _instance = null; | ||
|
||
public static AppDomainWorker Instance | ||
{ | ||
get | ||
{ | ||
lock (_lock) | ||
{ | ||
if (_instance == null) | ||
{ | ||
_instance = new AppDomainWorker(); | ||
} | ||
|
||
return _instance; | ||
} | ||
} | ||
} | ||
|
||
public void PerformWorkInAppDomain(out string domainName) | ||
{ | ||
AppDomain newDomain = AppDomain.CurrentDomain; | ||
try | ||
{ | ||
|
||
var worker = (AppDomainWorker)newDomain.CreateInstanceAndUnwrap( | ||
typeof(AppDomainWorker).Assembly.FullName, | ||
typeof(AppDomainWorker).FullName); | ||
|
||
worker.DoWork(newDomain); | ||
|
||
domainName = newDomain.BaseDirectory; | ||
} | ||
catch (Exception ex) | ||
{ | ||
domainName = ex.Message; | ||
} | ||
} | ||
|
||
public void DoWork(AppDomain appdomain) | ||
{ | ||
try | ||
{ | ||
Logger.Instance.Log("[SECOND DOMAIN] - Created a SubAppDomain..."); | ||
|
||
var process = new Process(); | ||
process.StartInfo.FileName = ".\\server.exe"; | ||
process.StartInfo.UseShellExecute = true; | ||
process.StartInfo.CreateNoWindow = true; | ||
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
process.StartInfo.Domain = appdomain.FriendlyName; | ||
process.EnableRaisingEvents = true; | ||
|
||
Logger.Instance.Log("[SECOND DOMAIN] - Try to start Messaging Service..."); | ||
|
||
process.Start(); | ||
|
||
} | ||
catch (Exception ex) | ||
{ | ||
Logger.Instance.Log("[SECOND DOMAIN] - An exception occurred in the AppDomain: " + ex.Message); | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace srvlocal_gui.AppMananger | ||
{ | ||
public enum UpdateMode | ||
{ | ||
Manual = 1, | ||
Automatic = 0 | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.