Skip to content

Commit 44bb023

Browse files
authored
Merge pull request #9 from Ordisoftware/dev
Improve UI
2 parents 95b63ad + 749fb9f commit 44bb023

File tree

8 files changed

+537
-652
lines changed

8 files changed

+537
-652
lines changed

Project/App.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<setting name="CurrentView" serializeAs="String">
4444
<value>Analyse</value>
4545
</setting>
46+
<setting name="CopyToClipboardCloseApp" serializeAs="String">
47+
<value>False</value>
48+
</setting>
4649
</Ordisoftware.HebrewLetters.Properties.Settings>
4750
</userSettings>
4851
</configuration>

Project/Properties/Settings.Designer.cs

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Project/Properties/Settings.settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@
4040
<Setting Name="CurrentView" Type="Ordisoftware.HebrewLetters.ViewModeType" Scope="User">
4141
<Value Profile="(Default)">Analyse</Value>
4242
</Setting>
43+
<Setting Name="CopyToClipboardCloseApp" Type="System.Boolean" Scope="User">
44+
<Value Profile="(Default)">False</Value>
45+
</Setting>
4346
</Settings>
4447
</SettingsFile>

Project/Source/Classes/Letters.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public class MeaningTranslation : Dictionary<string, List<string>>
7272
/// </summary>
7373
static public readonly Dictionary<string, string[]> Structures = new Dictionary<string, string[]>()
7474
{
75-
{ "en", new string[] { "Bull", "House", "Camel", "Column", "Praise", "Nail", "Weapon", "Beast", "Shield", "Hand", "Palm", "Stick", "Waters", "Fish", "Support", "Eye", "Mouth", "Hook", "Neck", "Head ", "Tooth", "Cross" } },
76-
{ "fr", new string[] { "Taureau", "Maison", "Chameau", "Colonne", "Louange", "Clou", "Arme", "Bête", "Bouclier", "Main", "Paume", "Bâton", "Eaux", "Poisson", "Appui", "Oeil", "Bouche", "Hameçon", "Nuque", "Tête", "Dent", "Croix" } }
75+
{ "en", new string[] { "Bull", "House", "Camel", "Column", "Praise", "Nail", "Weapon", "Creature", "Shield", "Hand", "Palm", "Stick", "Waters", "Fish", "Support", "Eye", "Mouth", "Hook", "Neck", "Head ", "Tooth", "Cross" } },
76+
{ "fr", new string[] { "Taureau", "Maison", "Chameau", "Colonne", "Louange", "Clou", "Arme", "Créature", "Bouclier", "Main", "Paume", "Bâton", "Eaux", "Poisson", "Appui", "Oeil", "Bouche", "Hameçon", "Nuque", "Tête", "Dent", "Croix" } }
7777
};
7878

7979
/// <summary>
@@ -91,7 +91,7 @@ public class MeaningTranslation : Dictionary<string, List<string>>
9191
static public readonly Dictionary<string, string[]> Verbs = new Dictionary<string, string[]>()
9292
{
9393
{ "en", new string[] { "Plan", "Arrange", "Eloborate", "Emit", "Note", "Speak", "Persevere", "Grant", "Assemble", "Exist", "Spread", "Give", "Contribute", "Lead", "Gather", "Interact", "Protect", "Help", "Free", "Show", "Share", "Support" } },
94-
{ "fr", new string[] { "Planifier", "Disposer", "Eloborer", "Emettre", "Constater", "Parler", "Persévérer", "Accorder", "Assembler", "Exister", "Répandre", "Donner", "Contribuer", "Diriger", "Rassembler", "Interagir", "Protéger", "Aider", "Libérer", "Montrer", "Partager", "Soutenir" } }
94+
{ "fr", new string[] { "Planifier", "Disposer", "Éloborer", "Émettre", "Constater", "Parler", "Persévérer", "Accorder", "Assembler", "Exister", "Répandre", "Donner", "Contribuer", "Diriger", "Rassembler", "Interagir", "Protéger", "Aider", "Libérer", "Montrer", "Partager", "Soutenir" } }
9595
};
9696

9797
/// <summary>
@@ -112,7 +112,7 @@ public class MeaningTranslation : Dictionary<string, List<string>>
112112
new MeaningTranslation()
113113
{
114114
{ "en", new List<string>() { "Bearer on the Move", "Energy in motion", "Time", "Shepherd", "Testimony", "History", "Investment", "Liberation" } },
115-
{ "fr", new List<string>() { "Porteur en marche", "Energie en mouvement", "Temps", "Berger", "Témoignage", "Histoire", "Investissement", "Libération" } }
115+
{ "fr", new List<string>() { "Porteur en marche", "Énergie en mouvement", "Temps", "Berger", "Témoignage", "Histoire", "Investissement", "Libération" } }
116116
},
117117
new MeaningTranslation()
118118
{
@@ -122,7 +122,7 @@ public class MeaningTranslation : Dictionary<string, List<string>>
122122
new MeaningTranslation()
123123
{
124124
{ "en", new List<string>() { "Breath", "Breathing", "Meeting", "Presentation", "Astonishment", "Celebration" } },
125-
{ "fr", new List<string>() { "Souffle", "Respiration", "Rencontre", "Présentation", "Etonnement", "Festivité" } }
125+
{ "fr", new List<string>() { "Souffle", "Respiration", "Rencontre", "Présentation", "Étonnement", "Festivité" } }
126126
},
127127
new MeaningTranslation()
128128
{
@@ -142,12 +142,12 @@ public class MeaningTranslation : Dictionary<string, List<string>>
142142
new MeaningTranslation()
143143
{
144144
{ "en", new List<string>() { "Refuge", "Journey", "Innerity", "Wisdom", "Power", "Eternity" } },
145-
{ "fr", new List<string>() { "Refuge", "Voyage", "Intériorité", "Sagesse", "Puissance", "Eternité" } }
145+
{ "fr", new List<string>() { "Refuge", "Voyage", "Intériorité", "Sagesse", "Puissance", "Éternité" } }
146146
},
147147
new MeaningTranslation()
148148
{
149-
{ "en", new List<string>() { "Sprout", "Spiritual Core", "Impulse", "Peace", "Blessing", "Freedom", "Structure", "Purity", "Giving", "Spermatozoa", "Flame-energy (Adam XY, Eve XX)" } },
150-
{ "fr", new List<string>() { "Germe", "Noyau spirituel", "Impulsion", "Paix", "Bénédiction", "Liberté", "Structure", "Pureté", "Donner", "Spermatozoïde", "Flamme-énergie (Adam XY, Ève XX)" } }
149+
{ "en", new List<string>() { "Sprout", "Energy", "Flame", "Spiritual Core", "Impulse", "Peace", "Blessing", "Freedom", "Structure", "Purity", "Giving", "Spermatozoa", "Adam XY, Eve XX" } },
150+
{ "fr", new List<string>() { "Germe", "Énergie", "Flamme", "Noyau spirituel", "Impulsion", "Paix", "Bénédiction", "Liberté", "Structure", "Pureté", "Donner", "Spermatozoïde", "Adam XY, Ève XX" } }
151151
},
152152
new MeaningTranslation()
153153
{
@@ -161,8 +161,8 @@ public class MeaningTranslation : Dictionary<string, List<string>>
161161
},
162162
new MeaningTranslation()
163163
{
164-
{ "en", new List<string>() { "Formation", "Transformation", "Maturation", "Salutation", "Prayer", "Service", "Recognition", "Origin", "Unconscious" } },
165-
{ "fr", new List<string>() { "Formation", "Transformation", "Maturation", "Salutation", "Prière", "Service", "Reconnaissance", "Origine", "Inconscient" } }
164+
{ "en", new List<string>() { "Formation", "Transformation", "Maturation", "Salutation", "Prayer", "Service", "Recognition", "Unconscious" } },
165+
{ "fr", new List<string>() { "Formation", "Transformation", "Maturation", "Salutation", "Prière", "Service", "Reconnaissance", "Inconscient" } }
166166
},
167167
new MeaningTranslation()
168168
{

Project/Source/Classes/SettingsHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static internal void Retrieve(this Settings settings)
7777
MainForm.WindowState = settings.MainFormState;
7878
MainForm.EditConfirmClosing.Checked = settings.ConfirmClosing;
7979
MainForm.EditShowTips.Checked = settings.ShowTips;
80+
MainForm.SelectCloseApp.Checked = settings.CopyToClipboardCloseApp;
8081
}
8182

8283
/// <summary>
@@ -102,6 +103,7 @@ static internal void Store(this Settings settings)
102103
if ( MainForm.EditScreenCenter.Checked ) settings.MainFormPosition = ControlLocation.Center;
103104
settings.ConfirmClosing = MainForm.EditConfirmClosing.Checked;
104105
settings.ShowTips = MainForm.EditShowTips.Checked;
106+
settings.CopyToClipboardCloseApp = MainForm.SelectCloseApp.Checked;
105107
settings.Save();
106108
}
107109

Project/Source/Forms/MainForm.Designer.cs

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Project/Source/Forms/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using Microsoft.Win32;
1616
using Ordisoftware.Core;
1717
using System;
18-
using System.Collections.Generic;
1918
using System.Data;
2019
using System.Diagnostics;
2120
using System.Drawing;
@@ -296,7 +295,8 @@ private void ActionClear_Click(object sender, EventArgs e)
296295

297296
private void ActionCopyToClipboard_Click(object sender, EventArgs e)
298297
{
299-
Clipboard.SetText(EditSentence.Text);
298+
if ( EditSentence.Text != "") Clipboard.SetText(EditSentence.Text);
299+
if ( SelectCloseApp.Checked ) Close();
300300
}
301301

302302
private void ActionAnalyse_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)