forked from GleamTech/FileUltimate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOverview.aspx.vb
28 lines (23 loc) · 963 Bytes
/
Overview.aspx.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
Imports System.Globalization
Imports GleamTech.FileUltimate.AspNet
Namespace FileManager
Public Class OverviewPage
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
If IsPostBack Then
fileManager.DisplayLanguage = LanguageSelector.SelectedValue
Else
PopulateLanguageSelector()
End If
End Sub
Private Sub PopulateLanguageSelector()
For Each cultureInfo As CultureInfo In FileUltimateWebConfiguration.AvailableDisplayCultures
Dim listItem = New ListItem(cultureInfo.NativeName + $" ({cultureInfo.Name})", cultureInfo.Name)
If cultureInfo.Name = fileManager.DisplayLanguage Then
listItem.Selected = True
End If
LanguageSelector.Items.Add(listItem)
Next
End Sub
End Class
End Namespace