-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Chore: Refactor some code to implement connect later * Feature: Current connected wifi network * Feature: Add hidden network, tooltip bssid & scan report timestamp * Feature: Improve error handling if adapter is not available when scanning * Feature: Disconnect implemented * Feature: Add icons, fix string * Fix: Password is empty on init * Feature: WiFi Connect dialog * Docs: Add #2133 * Docs: Add some comments * Docs: More docs * Feature: WiFi connect to network * Chore: Refactor WiFi view / remove redundant code * Feature: Focus control after loading * Feature: WiFi connect via WPS, some docs, cleanup, etc. * Docs: Add #2133
- Loading branch information
1 parent
20d0323
commit 33d7705
Showing
28 changed files
with
2,085 additions
and
696 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
Source/NETworkManager.Localization/Resources/StaticStrings.Designer.cs
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
171 changes: 171 additions & 0 deletions
171
Source/NETworkManager.Localization/Resources/Strings.Designer.cs
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
38 changes: 38 additions & 0 deletions
38
Source/NETworkManager.Localization/Translators/WiFiConnectionStatusTranslator.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using NETworkManager.Models.PuTTY; | ||
using NETworkManager.Utilities; | ||
using Windows.Devices.WiFi; | ||
|
||
namespace NETworkManager.Localization.Translators; | ||
|
||
/// <summary> | ||
/// Class to translate <see cref="LogMode"/>. | ||
/// </summary> | ||
public class WiFiConnectionStatusTranslator : SingletonBase<WiFiConnectionStatusTranslator>, ILocalizationStringTranslator | ||
{ | ||
/// <summary> | ||
/// Constant to identify the strings in the language files. | ||
/// </summary> | ||
private const string _identifier = "WiFiConnectionStatus_"; | ||
|
||
/// <summary> | ||
/// Method to translate <see cref="WiFiConnectionStatus"/>. | ||
/// </summary> | ||
/// <param name="value"><see cref="WiFiConnectionStatus"/>.</param> | ||
/// <returns>Translated <see cref="WiFiConnectionStatus"/>.</returns> | ||
public string Translate(string value) | ||
{ | ||
var translation = Resources.Strings.ResourceManager.GetString(_identifier + value, LocalizationManager.GetInstance().Culture); | ||
|
||
return string.IsNullOrEmpty(translation) ? value : translation; | ||
} | ||
|
||
/// <summary> | ||
/// Method to translate <see cref="WiFiConnectionStatus"/>. | ||
/// </summary> | ||
/// <param name="status"><see cref="WiFiConnectionStatus"/>.</param> | ||
/// <returns>Translated <see cref="WiFiConnectionStatus"/>.</returns> | ||
public string Translate(WiFiConnectionStatus status) | ||
{ | ||
return Translate(status.ToString()); | ||
} | ||
} |
Oops, something went wrong.