ShiftOS-TheRevival-Old/ShiftOS-TheRevival/MainForms/DesktopEnvironment/master/DesktopManager.vb
2022-11-21 13:56:13 +07:00

29 lines
744 B
VB.net

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