Skip to content

Commit 03f680a

Browse files
committed
Docs: Improve description
1 parent d4e9171 commit 03f680a

File tree

4 files changed

+47
-34
lines changed

4 files changed

+47
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<b>A powerful open source tool for managing networks and troubleshooting network problems!</b>
66
</p>
77
<p>
8-
Connect to and manage remote systems with Remote Desktop, PowerShell, PuTTY, TigerVNC or AWS (Systems Manager) Session Manager. Analyze and troubleshoot your network and systems with features such as the WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS lookup or LLDP/CDP capture (and many <a href="https://borntoberoot.net/NETworkManager/docs/features">more</a>) in a unfied interface. Hosts (or networks) can be saved in (encrypted) profiles and used across all features.
8+
Connect to remote systems and manage your network and server infrastructure using tools like Remote Desktop (RDP), PuTTY (SSH, Telnet, Serial), PowerShell (WinRM), TigerVNC (VNC), or AWS Console (AWS SSM). Analyze, troubleshoot, and obtain detailed information about your network and systems with features such as the WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, and LLDP/CDP Capture (and many <a href="https://borntoberoot.net/NETworkManager/docs/features">more</a>) — all within a unified interface. Hosts and networks can be saved in encrypted profiles and used across all features.
99
<p>
1010
<a href="https://borntoberoot.net/NETworkManager/download" target="_blank">
1111
<img alt="All releases" src="https://img.shields.io/badge/>>_download_now_<<-00abbd?style=for-the-badge" height="48" />

Source/NETworkManager/Controls/RemoteDesktopControl.xaml.cs

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using NETworkManager.Settings;
99
using NETworkManager.Utilities;
1010
using System;
11-
using System.Diagnostics;
1211
using System.Threading.Tasks;
1312
using System.Windows;
1413
using System.Windows.Input;
@@ -372,18 +371,18 @@ public async void AdjustScreen(bool force = false)
372371
await Task.Delay(250);
373372

374373
var desktopSize = GetDesktopSize();
375-
374+
376375
Log.Debug($"AdjustScreen - Desktop size: {desktopSize.Item1}x{desktopSize.Item2}");
377376

378377
// Check if we need to adjust the screen (always on DPI changes or manual)
379378
if (force == false)
380379
{
381380
var needUpdate = false;
382-
381+
383382
var windowsFormsHostSize = GetWindowsFormsHostSize(desktopSize.Item1, desktopSize.Item2);
384383

385384
Log.Debug($"AdjustScreen - WindowsFormsHost size: {windowsFormsHostSize.Item1}x{windowsFormsHostSize.Item2}");
386-
385+
387386
if (!(Math.Abs(WindowsFormsHostMaxWidth - windowsFormsHostSize.Item1) < double.Epsilon) ||
388387
!(Math.Abs(WindowsFormsHostMaxHeight - windowsFormsHostSize.Item2) < double.Epsilon))
389388
{
@@ -426,7 +425,7 @@ public async void AdjustScreen(bool force = false)
426425

427426
// Fix the size of the WindowsFormsHost and the RDP control
428427
FixWindowsFormsHostSize(desktopSize.Item1, desktopSize.Item2);
429-
428+
430429
try
431430
{
432431
// This may fail if the RDP session was connected recently
@@ -462,19 +461,25 @@ private void FixWindowsFormsHostSize(double width, double height)
462461
RdpClient.Height = (int)height;
463462
}
464463

464+
/// <summary>
465+
/// Get the size of the WindowsFormsHost based on the DPI scale factor.
466+
/// </summary>
467+
/// <param name="width">Target width of the RDP session.</param>
468+
/// <param name="height">Target height of the RDP session.</param>
469+
/// <returns>Scaled width and height of the WindowsFormsHost.</returns>
465470
private Tuple<double, double> GetWindowsFormsHostSize(double width, double height)
466471
{
467472
var scaleFactor = GetDpiScaleFactor();
468-
473+
469474
var widthScaled = width / scaleFactor * 100;
470475
var heightScaled = height / scaleFactor * 100;
471476

472477
widthScaled = Math.Ceiling(widthScaled / 2) * 2;
473478
heightScaled = Math.Ceiling(heightScaled / 2) * 2;
474-
479+
475480
return new Tuple<double, double>(widthScaled, heightScaled);
476481
}
477-
482+
478483
/// <summary>
479484
/// Send a keystroke to the remote session.
480485
/// </summary>
@@ -676,6 +681,15 @@ private int GetDpiScaleFactor()
676681

677682
return (int)(x.PixelsPerDip * 100);
678683
}
684+
685+
/// <summary>
686+
/// Update the screen size when the window is resized.
687+
/// </summary>
688+
public void UpdateOnWindowResize()
689+
{
690+
if (_sessionInfo.AdjustScreenAutomatically)
691+
AdjustScreen();
692+
}
679693
#endregion
680694

681695
#region Events
@@ -693,16 +707,14 @@ private void RdpClient_OnDisconnected(object sender, IMsTscAxEvents_OnDisconnect
693707

694708
DisconnectReason = GetDisconnectReason(e.discReason);
695709
}
696-
#endregion
697-
698-
public void UpdateOnWindowResize()
699-
{
700-
if (_sessionInfo.AdjustScreenAutomatically)
701-
AdjustScreen();
702-
}
703710

704711
private void WindowsFormsHost_DpiChanged(object sender, DpiChangedEventArgs e)
705712
{
706713
AdjustScreen(force: true);
707714
}
715+
#endregion
716+
717+
718+
719+
708720
}

Website/docs/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import styles from "./styles.module.css";
1010

1111
**NETworkManager is a powerful open source tool for managing networks and troubleshooting network problems!**
1212

13-
Connect to and manage remote systems with Remote Desktop, PowerShell, PuTTY, TigerVNC or AWS (Systems Manager) Session Manager. Analyze and troubleshoot your network and systems with features such as the WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS lookup or LLDP/CDP capture (and many [more](./features)) in a unfied interface. Hosts (or networks) can be saved in (encrypted) profiles and used across all features.
13+
Connect to remote systems and manage your network and server infrastructure using tools like Remote Desktop (RDP), PuTTY (SSH, Telnet, Serial), PowerShell (WinRM), TigerVNC (VNC), or AWS Console (AWS SSM). Analyze, troubleshoot, and obtain detailed information about your network and systems with features such as the WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, and LLDP/CDP Capture (and many [more](./features)) — all within a unified interface. Hosts and networks can be saved in encrypted profiles and used across all features.
1414

1515
![NETworkManager Preview](/img/preview.gif)

Website/src/components/HomepageFeatures/index.js

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,47 @@ import styles from "./styles.module.css";
44

55
const FeatureList = [
66
{
7-
title: "Analyze Networks",
7+
title: "Network Analysis",
88
Svg: require("@site/static/img/undraw_connected_world_wuay.svg").default,
99
description: (
1010
<>
11-
Analyze your network and get detailed information about hosts with the
12-
numerous built-in features such as IP / port scanner, traceroute, DNS
13-
query and much more.
11+
Analyze your network and gather detailed information using built-in
12+
tools such as the WiFi Analyzer, IP Scanner, Port Scanner, Traceroute,
13+
DNS Lookup, Ping Monitor, LLDP/CDP Capture, and many [more(./docs/features)].
1414
</>
1515
),
1616
},
1717
{
18-
title: "Manage Systems",
18+
title: "Remote System Management",
1919
Svg: require("@site/static/img/undraw_server_cluster_jwwq.svg").default,
2020
description: (
2121
<>
22-
Manage your network and server infrastructure via various protocols such
23-
as SSH, RDP, VNC, WinRM or AWS SSM with the integrated clients.
22+
Connect to remote systems and manage your network and server
23+
infrastructure with integrated clients such as Remote Desktop (RDP),
24+
PuTTY (SSH, Telnet, Serial), PowerShell (WinRM), TigerVNC (VNC), and AWS
25+
Console (AWS SSM).
2426
</>
2527
),
2628
},
2729
{
28-
title: "Troubleshoot Problems",
30+
title: "Effortless Troubleshooting",
2931
Svg: require("@site/static/img/undraw_server_down_s-4-lk.svg").default,
3032
description: (
3133
<>
32-
Effectively analyze and resolve problems by combining numerous features
33-
in a single application.
34+
Diagnose and resolve issues effectively with a comprehensive suite of
35+
tools within a unified application.
3436
</>
3537
),
3638
},
3739
{
38-
title: "Profiles Management",
40+
title: "Profile Management",
3941
Svg: require("@site/static/img/undraw_personal_settings_re_i6w4.svg")
4042
.default,
4143
description: (
4244
<>
43-
Save your hosts with specific configurations in profiles and use them
44-
across all features. Separate them by environments and encrypt them to
45-
protect your sensitive data.
45+
Save hosts and networks with custom configurations in encrypted profiles
46+
to protect your sensitive data, organize them by environment (e.g.,
47+
Company A, Company B), and use them seamlessly across features.
4648
</>
4749
),
4850
},
@@ -51,9 +53,8 @@ const FeatureList = [
5153
Svg: require("@site/static/img/undraw_version_control_re_mg66.svg").default,
5254
description: (
5355
<>
54-
NETworkManager is open source and available on GitHub! You can review
55-
the code at any time, build it yourself and even contribute to the
56-
project to improve it.
56+
NETworkManager is fully open source on GitHub. Review the code, build it
57+
yourself, or contribute to make it even better.
5758
</>
5859
),
5960
},

0 commit comments

Comments
 (0)