diff options
| author | Michael <[email protected]> | 2017-02-02 11:02:58 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-02 11:02:58 -0500 |
| commit | fbc1586ff2e1362ce53952f65d78eb015efbcb04 (patch) | |
| tree | e5df4399483bce356a3bfcfa52db98f33e9b2564 /ShiftOS.WinForms/Applications | |
| parent | baf9c4834607dcfac7cbc85d1fa406a3076a394c (diff) | |
| download | shiftos_thereturn-fbc1586ff2e1362ce53952f65d78eb015efbcb04.tar.gz shiftos_thereturn-fbc1586ff2e1362ce53952f65d78eb015efbcb04.tar.bz2 shiftos_thereturn-fbc1586ff2e1362ce53952f65d78eb015efbcb04.zip | |
Fully implement mud traversal into OOBE and setup
Diffstat (limited to 'ShiftOS.WinForms/Applications')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Shiftnet.cs | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/ShiftOS.WinForms/Applications/Shiftnet.cs b/ShiftOS.WinForms/Applications/Shiftnet.cs index 4388ece..e97a4cb 100644 --- a/ShiftOS.WinForms/Applications/Shiftnet.cs +++ b/ShiftOS.WinForms/Applications/Shiftnet.cs @@ -65,6 +65,12 @@ namespace ShiftOS.WinForms.Applications font-size: {LoadedSkin.Header3Font.SizeInPoints}pt; }} + pre, code {{ + font-family: ""{LoadedSkin.TerminalFont.Name}""; + font-size: {LoadedSkin.TerminalFont.SizeInPoints}pt; + color: rgb({LoadedSkin.TerminalForeColor.R}, {LoadedSkin.TerminalForeColor.G}, {LoadedSkin.TerminalForeColor.B}); + background-color: rgb({LoadedSkin.TerminalBackColor.R}, {LoadedSkin.TerminalBackColor.G}, {LoadedSkin.TerminalBackColor.B}); + }} </style> </head> <body> @@ -128,20 +134,34 @@ namespace ShiftOS.WinForms.Applications private void btnback_Click(object sender, EventArgs e) { - string hist = History.Pop(); - if (!string.IsNullOrEmpty(hist)) + try + { + string hist = History.Pop(); + if (!string.IsNullOrEmpty(hist)) + { + Future.Push(hist); + ShiftnetNavigate(hist, false); + } + } + catch { - Future.Push(hist); - ShiftnetNavigate(hist, false); + } } private void btnforward_Click(object sender, EventArgs e) { - string fut = Future.Pop(); - if (!string.IsNullOrEmpty(fut)) + try { - ShiftnetNavigate(fut); + string fut = Future.Pop(); + if (!string.IsNullOrEmpty(fut)) + { + ShiftnetNavigate(fut); + } + } + catch + { + } } |
