-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneral settings.vb
382 lines (367 loc) · 27.9 KB
/
general settings.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
Imports System
Imports System.IO
Public Class general_settings
'Public Shared Sub load_settings_from_file()
'Dim found As Integer = 0
'Dim current_line As String = ""
'Dim current_key As String = ""
'Dim current_text As String = ""
'Dim found_lang As Boolean = False
'Dim lang_file As String = ""
' If File.Exists("config.ini") = False Then
''**************************msg to follow
' Else
' Using sr As StreamReader = New StreamReader("config.ini", System.Text.Encoding.Default)
' current_line = language_settings.read_line_from_file(sr, 1)
' While Not (current_line Is Nothing) 'there is text
' found = current_line.IndexOf("=")
' If (found > 0) Then
' current_key = current_line.Substring(0, found).Trim() 'name
' current_text = (current_line.Substring((found + 1)).Trim())
' Select Case current_key
''***language settings ************
' Case "current_language"
' language_settings.language_current_file = current_text
' found_lang = True
' Case "remember_lang"
' language_settings.lang_remember = CBool(current_text)
' Case "first_run"
' configurations.First_run = CBool(current_text)
' End Select
' End If
' current_line = language_settings.read_line_from_file(sr, 1)
' End While
' sr.Close()
' End Using
' End If
'End Sub
'Public Shared Sub save_settings_to_file()
' Using sw As StreamWriter = New StreamWriter("config.ini", False)
' sw.WriteLine("Last update at " & DateTime.Now)
' sw.WriteLine("First_run=" & configurations.First_run)
' sw.WriteLine("remember_lang=" & language_settings.lang_remember)
' sw.WriteLine("current_language=" & language_settings.language_current_file)
' sw.Close()
' End Using
'End Sub
Public Class general_variables
Public Shared orthotropic_count_results As Single = 0
Public Shared Grillage_count_results As Single = 0
Public Shared current_model As String = "orthotropic plate model"
End Class
Public Shared Sub load_settings_from_registry()
'****** CURRENT MODEL READING *********
If Not (My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current model", Nothing) Is Nothing) Then
general_settings.general_variables.current_model = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current model", "orthotropic plate model")
End If
'****** END CURRENT MODEL READING *********
'****** LANGUAGE FILE READING *********
If Not (My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current file", Nothing) Is Nothing) Then
language_settings.language_current_file = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current file", "default_eng.ini")
End If
'****** END LANGUAGE FILE READING *********
'****** REMEMBER LANGUAGE READING *********
If Not (My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "remember language", Nothing) Is Nothing) Then
language_settings.language_remember = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "remember language", "false")
End If
'****** END REMEMBER LANGUAGE READING *********
'****** COUNTER READING *********
If Not (My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "orthotropic count results", Nothing) Is Nothing) Then
general_settings.general_variables.orthotropic_count_results = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "orthotropic count results", 0)
End If
If Not (My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "grillage count results", Nothing) Is Nothing) Then
general_settings.general_variables.Grillage_count_results = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "grillage count results", 0)
End If
'****** END COUNTER READING *********
If language_settings.language_remember = False Then
language_settings.language_current_file = "default_eng.ini"
End If
If File.Exists(language_settings.language_current_file) = False Then
If File.Exists("default_eng.ini") = False Then
If File.Exists("default_heb.ini") = False Then
' no text file exist!!!!!!!!!
Else
language_settings.language_current_file = "default_heb.ini"
End If
Else
language_settings.language_current_file = "default_eng.ini"
End If
End If
End Sub
Public Shared Sub save_settings_to_registry()
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Last updated", DateTime.Now)
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current file", language_settings.language_current_file)
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "remember language", language_settings.language_remember)
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "orthotropic count results", general_settings.general_variables.orthotropic_count_results)
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "grillage count results", general_settings.general_variables.Grillage_count_results)
If general_settings.general_variables.current_model = Nothing Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current model", "orthotropic plate model")
Else
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Stiffened Plates Evaluator", "Current model", general_settings.general_variables.current_model)
End If
End Sub
Public Class controls_Library
Public Shared numeric_case As NumericUpDown
Public Shared current_lang As String = "english"
Public Shared status_form As Form
Public Shared luncher_form As Form
Public Shared DB_moment As TextBox
Public Shared DB_area As TextBox
Public Shared DB_centroid As TextBox
Public Shared DB_update As Button
Public Shared DB_cancel As Button
Public Shared form_change As Form
Public Shared GUI_Launcher As Form
Public Shared FEA_result_from_status As Form
Public Shared FEA_result_from_status_case01 As RadioButton
Public Shared FEA_result_from_status_case02 As RadioButton
Public Shared FEA_result_from_status_case03 As RadioButton
Public Shared FEA_result_from_status_case04 As RadioButton
Public Shared remember_lang As Boolean = True
End Class
Public Class messages
Public Shared msg_text As String = ""
Public Shared msg_title As String = ""
Public Shared msg_style As MsgBoxStyle
Public Shared msg_res As MsgBoxResult
Public Shared Function read_msg(ByVal num As Byte) As Boolean
If language_settings.language_RTL_layout = True Then
Select Case num
Case 1
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg002
Case 2
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg003
Case 3
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg004
Case 4
msg_style = MsgBoxStyle.Exclamation + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading + MsgBoxStyle.YesNo
msg_title = language_settings.msg005
msg_text = language_settings.msg006 + Chr(13) + language_settings.msg007
Case 5 'Overflow warning
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg008
msg_text = language_settings.msg009 + Chr(13) + language_settings.msg010
Case 6 'Inputs texts are inccorect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg011
Case 7 ' incorrect moment unit for nuneric input
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg012
Case 8 ' incorrect area unit for nuneric input
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg013
Case 9 ' incorrect center unit for nuneric input
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg014
Case 10 'ðúåðé äçéæå÷ äîøëæé äàåøëé òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg015
msg_text = language_settings.msg016 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ia_stiffener * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + " " + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Aa_stiffener * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Ya_stiffener * 100) + language_settings.unit_centimeter
Case 11 'ðúåðé äçéæå÷ äîøëæé äøåçáé òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg020
msg_text = language_settings.msg021 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ib_stiffener * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + " " + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ab_stiffener * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Yb_stiffener * 100) + language_settings.unit_centimeter
Case 12 'ðúåðé äçéæå÷éí äìà îøëæééí äàåøëééí òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg022
msg_text = language_settings.msg023 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ina_stiffeners * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ana_stiffeners * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Yna_stiffeners * 100) + language_settings.unit_centimeter
Case 13 'ðúåðé äçéæå÷éí äìà îøëæééí äøåçáééí òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg024
msg_text = language_settings.msg025 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Inb_stiffeners * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Anb_stiffeners * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Ynb_stiffeners * 100) + language_settings.unit_centimeter
Case 14 'pressure units are incorrect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg026
Case 15 'pressure value is incorrect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg027
Case 16 'Young modulus is incorect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg028
Case 17 'poission is incorect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg029
Case 18 'BC is incorrect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg030
Case 19
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg049
msg_text = language_settings.msg050 + Chr(13) + language_settings.msg051
Case 20 'îñôø çéæå÷éí ìà ú÷éï
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg052
Case 21 'numeric data incorrect - Ia
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg053
Case 22 'numeric data incorrect - Ina
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg054
Case 23 'numeric data incorrect - Ib
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg055
Case 24 'numeric data incorrect - Inb
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg056
Case 25 ' data updated
msg_style = MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg057
msg_text = language_settings.msg058
Case 26 ' data not updated
msg_style = MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg059
msg_text = language_settings.msg060
Case 27 ' current Language information
msg_style = MsgBoxStyle.Information + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg070
msg_text = language_settings.msg071 + " " + language_settings.lang_name + Chr(13) + language_settings.msg072 + " " + language_settings.language_current_file + _
Chr(13) + language_settings.msg073 + " " + CStr(language_settings.language_RTL_layout) + Chr(13) + language_settings.msg074 + " " + language_settings.lang_comment1 + _
Chr(13) + language_settings.msg075 + " " + language_settings.lang_comment2 + Chr(13) + language_settings.msg076 + " " + language_settings.lang_comment3 + Chr(13) + language_settings.msg077 + " " + language_settings.lang_comment4
End Select
ElseIf language_settings.language_RTL_layout = False Then
Select Case num 'english layout
Case 1
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg002
Case 2
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg003
Case 3
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg004
Case 4
msg_style = MsgBoxStyle.Exclamation + MsgBoxStyle.YesNo
msg_title = language_settings.msg005
msg_text = language_settings.msg006
Case 5 'Overflow warning
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg008
msg_text = language_settings.msg009 + Chr(13) + language_settings.msg010
Case 6 'Inputs texts are inccorect
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg011
Case 7 ' incorrect moment unit for nuneric input
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg012
Case 8 ' incorrect area unit for nuneric input
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg013
Case 9 ' incorrect center unit for nuneric input
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg014
Case 10 'ðúåðé äçéæå÷ äîøëæé äàåøëé òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information
msg_title = language_settings.msg015
msg_text = language_settings.msg016 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ia_stiffener * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + " " + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Aa_stiffener * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Ya_stiffener * 100) + language_settings.unit_centimeter
Case 11 'ðúåðé äçéæå÷ äîøëæé äøåçáé òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information
msg_title = language_settings.msg020
msg_text = language_settings.msg021 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ib_stiffener * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + " " + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ab_stiffener * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Yb_stiffener * 100) + language_settings.unit_centimeter
Case 12 'ðúåðé äçéæå÷éí äìà îøëæééí äàåøëééí òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information
msg_title = language_settings.msg022
msg_text = language_settings.msg023 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ina_stiffeners * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Ana_stiffeners * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Yna_stiffeners * 100) + language_settings.unit_centimeter
Case 13 'ðúåðé äçéæå÷éí äìà îøëæééí äøåçáééí òáåø äúîåðä
msg_style = MsgBoxStyle.OkOnly + MsgBoxStyle.Information
msg_title = language_settings.msg024
msg_text = language_settings.msg025 + Chr(13) + language_settings.msg017 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Inb_stiffeners * 100 ^ 4, 4)) + language_settings.unit_centimeter4 + Chr(13) + language_settings.msg018 + CStr(Math.Round(models_calculations.Orthotropic_model.model_variables.Anb_stiffeners * 100 ^ 2, 4)) + language_settings.unit_centimeter2 + Chr(13) + language_settings.msg019 + CStr(models_calculations.Orthotropic_model.model_variables.Ynb_stiffeners * 100) + language_settings.unit_centimeter
Case 14 'pressure units are incorrect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.Information
msg_title = language_settings.msg001
msg_text = language_settings.msg026
'"äéçéãåú ùðáçøå òáåø äìçõ àéðï ú÷éðåú"
Case 15 'pressure value is incorrect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.Information
msg_title = language_settings.msg001
msg_text = language_settings.msg027
'"äòøê òáåø äìçõ äôåòì òì äôìèä àéðå òøê îñôøé ú÷éï"
Case 16 'Young modulus is incorect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.Information
msg_title = language_settings.msg001
msg_text = language_settings.msg028
'"äòøê òáåø îåãåì àìñèéåú àéðå òøê îñôøé ú÷éï"
Case 17 'poission is incorect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.Information
msg_title = language_settings.msg001
msg_text = language_settings.msg029
'"äòøê òáåø éçñ ôåàñåï àéðå òøê îñôøé ú÷éï"
Case 18 'BC is incorrect
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.Information
msg_title = language_settings.msg001
msg_text = language_settings.msg030
'"éù ìáçåø òøê ùìí áéï àçã òã àøáò òáåø ñåâ úðàé äùôä"
Case 19
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.Information
msg_title = language_settings.msg049
msg_text = language_settings.msg050 + Chr(13) + language_settings.msg051
Case 20 'îñôø çéæå÷éí ìà ú÷éï
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.MsgBoxRight + MsgBoxStyle.MsgBoxRtlReading
msg_title = language_settings.msg001
msg_text = language_settings.msg052
Case 21 'numeric data incorrect - Ia
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg053
Case 22 'numeric data incorrect - Ina
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg054
Case 23 'numeric data incorrect - Ib
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg055
Case 24 'numeric data incorrect - Inb
msg_style = MsgBoxStyle.Critical
msg_title = language_settings.msg001
msg_text = language_settings.msg056
Case 25 ' data updated
msg_style = MsgBoxStyle.Information
msg_title = language_settings.msg057
msg_text = language_settings.msg058
Case 26 ' data not updated
msg_style = MsgBoxStyle.Information
msg_title = language_settings.msg059
msg_text = language_settings.msg060
Case 27 ' current Language information
msg_style = MsgBoxStyle.Information
msg_title = language_settings.msg070
msg_text = language_settings.msg071 + " " + language_settings.lang_name + Chr(13) + language_settings.msg072 + " " + language_settings.language_current_file + _
Chr(13) + language_settings.msg073 + " " + CStr(language_settings.language_RTL_layout) + Chr(13) + language_settings.msg074 + " " + language_settings.lang_comment1 + _
Chr(13) + language_settings.msg075 + " " + language_settings.lang_comment2 + Chr(13) + language_settings.msg076 + " " + language_settings.lang_comment3 + Chr(13) + language_settings.msg077 + " " + language_settings.lang_comment4
End Select
Else
msg_text = "Language setting is missing."
msg_title = "Unable to display message"
msg_style = MsgBoxStyle.Critical + MsgBoxStyle.OkOnly
End If
Return True
End Function
End Class
End Class