aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Shiftnet.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-02 11:02:58 -0500
committerMichael <[email protected]>2017-02-02 11:02:58 -0500
commitfbc1586ff2e1362ce53952f65d78eb015efbcb04 (patch)
treee5df4399483bce356a3bfcfa52db98f33e9b2564 /ShiftOS.WinForms/Applications/Shiftnet.cs
parentbaf9c4834607dcfac7cbc85d1fa406a3076a394c (diff)
downloadshiftos_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/Shiftnet.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Shiftnet.cs34
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
+ {
+
}
}