2015-05-23 10:21:24 -04:00
|
|
|
|
Namespace BasicWM
|
|
|
|
|
Public Class Desktop
|
|
|
|
|
|
|
|
|
|
Public openterminals As Integer = 0
|
|
|
|
|
|
|
|
|
|
Private Sub btnnewterminal_Click(sender As Object, e As EventArgs) Handles btnnewterminal.Click
|
|
|
|
|
If openterminals = 3 Then
|
|
|
|
|
AddLine("The maximum ammount of Terminal windows are open.")
|
|
|
|
|
AddLine(username + "@" + osname + " " & Terminal.currentdir.ToLower.Replace("c:\shiftos", "~") & "$> ")
|
|
|
|
|
Else
|
|
|
|
|
Dim term As New Terminal
|
|
|
|
|
term.StartPosition = FormStartPosition.CenterParent
|
|
|
|
|
term.TopMost = True
|
|
|
|
|
term.Show()
|
|
|
|
|
openterminals += 1
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
2015-05-29 09:57:53 -04:00
|
|
|
|
Public Sub Redraw()
|
|
|
|
|
btnnewterminal.ForeColor = newterminalbuttontextcolor
|
|
|
|
|
btnnewterminal.BackColor = newterminalbuttonbackcolor
|
|
|
|
|
Me.BackColor = desktopbackcolor
|
|
|
|
|
End Sub
|
|
|
|
|
|
2015-05-23 10:21:24 -04:00
|
|
|
|
Private Sub Desktop_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
|
|
|
|
Terminal.Close()
|
|
|
|
|
Me.WindowState = FormWindowState.Maximized
|
|
|
|
|
Dim term As New Terminal
|
|
|
|
|
term.StartPosition = FormStartPosition.CenterParent
|
|
|
|
|
term.TopMost = True
|
|
|
|
|
term.Show()
|
|
|
|
|
openterminals += 1
|
2015-05-29 09:57:53 -04:00
|
|
|
|
loadskindata()
|
2015-05-23 10:21:24 -04:00
|
|
|
|
End Sub
|
|
|
|
|
End Class
|
|
|
|
|
End Namespace
|