diff --git a/Project/Source/Common/Core/Globalization/SysTranslations.Processing.cs b/Project/Source/Common/Core/Globalization/SysTranslations.Processing.cs index 018749f6..4960af82 100644 --- a/Project/Source/Common/Core/Globalization/SysTranslations.Processing.cs +++ b/Project/Source/Common/Core/Globalization/SysTranslations.Processing.cs @@ -11,7 +11,7 @@ /// You may add additional accurate notices of copyright ownership. /// /// 2016-04 -/// 2021-02 +/// 2021-12 namespace Ordisoftware.Core; /// @@ -44,6 +44,12 @@ static partial class SysTranslations [Language.FR] = "Chargement des données..." }; + static public readonly TranslationsDictionary BindingData = new() + { + [Language.EN] = "Binding data...", + [Language.FR] = "Liaison des données..." + }; + static public readonly TranslationsDictionary CreatingData = new() { [Language.EN] = "Creating data...", diff --git a/Project/Source/Forms/MainForm/MainForm.SetView.cs b/Project/Source/Forms/MainForm/MainForm.SetView.cs index da4f119f..5d783eb9 100644 --- a/Project/Source/Forms/MainForm/MainForm.SetView.cs +++ b/Project/Source/Forms/MainForm/MainForm.SetView.cs @@ -46,6 +46,7 @@ private sealed class ViewConnector private int SavedSelectionStart; private int SavedSelectionLength; + private bool ViewNotebookFirstTime = true; /// /// Sets the view panel. @@ -122,6 +123,11 @@ public void SetView(ViewMode view, bool first) SavedSelectionLength = EditWord.TextBox.SelectionLength; } LabelCurrentView.Text = AppTranslations.CurrentViewText[view].GetLang(); + if ( view == ViewMode.Notebook && ViewNotebookFirstTime ) + { + ViewNotebookFirstTime = false; + ActionNotebookClearLetter.PerformClick(); + } } } diff --git a/Project/Source/Forms/MainForm/MainForm.cs b/Project/Source/Forms/MainForm/MainForm.cs index a0fa2fa6..b9c1e5b6 100644 --- a/Project/Source/Forms/MainForm/MainForm.cs +++ b/Project/Source/Forms/MainForm/MainForm.cs @@ -431,16 +431,9 @@ private void ActionViewLetters_Click(object sender, EventArgs e) SetView(ViewMode.Letters); } - private bool ViewNotebookFirstTime = true; - private void ActionViewNotebook_Click(object sender, EventArgs e) { SetView(ViewMode.Notebook); - if ( ViewNotebookFirstTime ) - { - ViewNotebookFirstTime = false; - ActionNotebookClearLetter.PerformClick(); - } } ///