Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions 2LCS/2LCS.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<TargetFramework>net10.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>LCS</RootNamespace>
<IsWebBootstrapper>false</IsWebBootstrapper>
Expand Down Expand Up @@ -102,13 +102,10 @@
<Version>1.11.72</Version>
</PackageReference>
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.1" />
<PackageReference Include="System.Linq.Dynamic.Core">
<Version>1.6.1</Version>
</PackageReference>
<PackageReference Include="System.Runtime.Caching" Version="9.0.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" />
</ItemGroup>
</Project>
5 changes: 4 additions & 1 deletion 2LCS/ExtendedWebBrowser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Windows.Forms;
using System.ComponentModel;
using System.Windows.Forms;

namespace LCS
{
Expand All @@ -14,6 +15,8 @@ public ExtendedWebBrowser()
Navigate("about:blank");
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string UserAgent { get; set; }

private void BeforeNavigate(object pDisp, ref object url, ref object flags, ref object targetFrameName,
Expand Down
4 changes: 4 additions & 0 deletions 2LCS/Forms/AddNSG.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Net.Http;
using System.Windows.Forms;

Expand All @@ -17,6 +18,9 @@ public AddNsg()
}

public bool Cancelled { get; private set; }

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public Dictionary<string, string> Rule { get; set; }

protected override CreateParams CreateParams
Expand Down
3 changes: 3 additions & 0 deletions 2LCS/Forms/ChooseProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
Expand All @@ -22,6 +23,8 @@ public ChooseProject()
}

internal bool Cancelled { get; private set; }
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
internal HttpClientHelper HttpClientHelper { get; set; }
internal LcsProject LcsProject { get; private set; }

Expand Down
3 changes: 3 additions & 0 deletions 2LCS/Forms/Credentials.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;

namespace LCS.Forms
Expand All @@ -11,6 +12,8 @@ public Credentials()
InitializeComponent();
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public Dictionary<string, string> CredentialsDict { get; set; }

private void Credentials_Load(object sender, EventArgs e)
Expand Down
3 changes: 3 additions & 0 deletions 2LCS/Forms/LogDisplay.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace LCS.Forms
Expand All @@ -10,6 +11,8 @@ public LogDisplay()
InitializeComponent();
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string LogEntries { get; set; }

private void LogDisplay_Load(object sender, EventArgs e)
Expand Down
3 changes: 3 additions & 0 deletions 2LCS/Forms/PowerShell.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows.Forms;

Expand All @@ -12,6 +13,8 @@ public PowerShell()
InitializeComponent();
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public Dictionary<string, string> CredentialsDict { get; set; }

private void PowerShell_Load(object sender, EventArgs e)
Expand Down
3 changes: 0 additions & 3 deletions 2LCS/HttpClientHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ internal sealed class HttpClientHelper : IDisposable

internal HttpClientHelper(CookieContainer cookieContainer)
{
//Use Tls1.2 as default transport layer
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

CookieContainer = cookieContainer;
var httpClientHandler = new HttpClientHandler
{
Expand Down
Loading