aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-22 14:06:04 +0700
committerEverythingWindows <[email protected]>2022-11-22 14:06:04 +0700
commit16c2c5b6a7cd0e556d9da98f458d13d4dec8ded0 (patch)
tree5816b0ba985eb37e6f26c22547657a94eb56b2c1 /ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb
parent3f387f7460b49ed12d906c932bf3a3156d3bd025 (diff)
downloadshiftos-therevival-old-16c2c5b6a7cd0e556d9da98f458d13d4dec8ded0.tar.gz
shiftos-therevival-old-16c2c5b6a7cd0e556d9da98f458d13d4dec8ded0.tar.bz2
shiftos-therevival-old-16c2c5b6a7cd0e556d9da98f458d13d4dec8ded0.zip
Proper move from 'Shifter from Console' into 'App Shifter' command
Diffstat (limited to 'ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb')
-rw-r--r--ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb30
1 files changed, 19 insertions, 11 deletions
diff --git a/ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb b/ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb
index fdd9ba2..b0b4afb 100644
--- a/ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb
+++ b/ShiftOS-TheRevival/MainForms/Applications/Shifter/DuWM/DuWM_Shifter.vb
@@ -2,7 +2,7 @@
Private PrevHeight As Integer = Height
Private PrevWidth As Integer = Width
Private FeatureGap As Integer = 450 - 400
- Private ChildFeature As UserControl
+ Private ChildFeature As String
Private Sub Shifter_Load(sender As Object, e As EventArgs) Handles MyBase.Load
@@ -21,15 +21,23 @@
End Sub
Private Sub lst_Features_SelectedIndexChanged(sender As Object, e As EventArgs) Handles lst_Features.SelectedIndexChanged
- Select Case lst_Features.SelectedItem
- Case "Desktop"
- Dim Shifter_Desktop As New DuWM_Shifter_Desktop
- Shifter_Desktop.Size = pnl_Content.Size
- pnl_Content.Controls.Clear()
- pnl_Content.Controls.Add(Shifter_Desktop)
- Case "About"
- pnl_Content.Controls.Clear()
- MsgBox("Aboot")
- End Select
+ If lst_Features.SelectedItem = ChildFeature Then
+
+ Else
+ Select Case lst_Features.SelectedItem
+ Case "Desktop"
+ Dim Shifter_Desktop As New DuWM_Shifter_Desktop
+ Shifter_Desktop.Size = pnl_Content.Size
+ ChildFeature = "Desktop"
+ pnl_Content.Controls.Clear()
+ pnl_Content.Controls.Add(Shifter_Desktop)
+ Case "About"
+ ChildFeature = "About"
+ Dim Shifter_About As New DuWM_Shifter_About
+ Shifter_About.Size = pnl_Content.Size
+ pnl_Content.Controls.Clear()
+ pnl_Content.Controls.Add(Shifter_About)
+ End Select
+ End If
End Sub
End Class \ No newline at end of file