-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
LAB02 Research
committed
Apr 2, 2022
1 parent
d0d0330
commit 1de413c
Showing
59 changed files
with
920 additions
and
491 deletions.
There are no files selected for viewing
54 changes: 43 additions & 11 deletions
54
src/HASS.Agent/Controls/Configuration/ConfigGeneral.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
namespace HASS.Agent.Controls.Configuration | ||
using System.Globalization; | ||
using HASS.Agent.Functions; | ||
using Syncfusion.Windows.Forms; | ||
|
||
namespace HASS.Agent.Controls.Configuration | ||
{ | ||
public partial class ConfigGeneral : UserControl | ||
{ | ||
public ConfigGeneral() | ||
{ | ||
InitializeComponent(); | ||
|
||
BindComboBoxTheme(); | ||
} | ||
|
||
private void BindComboBoxTheme() => CbLanguage.DrawItem += ComboBoxTheme.DrawItem; | ||
|
||
private void ConfigGeneral_Load(object sender, EventArgs e) | ||
{ | ||
// | ||
// load all languages | ||
foreach (var lang in Variables.SupportedUILanguages) CbLanguage.Items.Add(lang.DisplayName); | ||
|
||
// select the current one | ||
CbLanguage.SelectedItem = Variables.CurrentUICulture.DisplayName; | ||
} | ||
} | ||
} |
16 changes: 8 additions & 8 deletions
16
src/HASS.Agent/Controls/Configuration/ConfigHomeAssistantApi.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
src/HASS.Agent/Controls/Configuration/ConfigHotKey.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
src/HASS.Agent/Controls/Configuration/ConfigLocalStorage.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.