aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/MainForms/DesktopEnvironment/master/DesktopManager.vb
blob: 89d8b65df3580571e34c14580d0313bd9b30b265 (plain) (blame)
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
Module DesktopManager
    Public Sub StartG()
        Desktop.Show()
        Desktop.FormBorderStyle = FormBorderStyle.None
        Desktop.WindowState = FormWindowState.Maximized
        Desktop.TopMost = False
        IsConsoleParent = False
        Console.Close()
        WindowManagerChoose()
        Cursor.Show()
    End Sub

    Public Sub StopG()
        DuWM_CurrentProcess = 0
        Strings.ProcessID(0) = 0
        Strings.ProcessID(1) = 0
        Cursor.Hide()
        IsConsoleParent = True
        Console.Show()
        Desktop.Close()
    End Sub

    Public Sub WindowManagerChoose()
        Select Case Strings.ComputerInfo(7)
            Case 1
                DuWM_Initiate()
        End Select
    End Sub
End Module