diff --git a/ShiftOS.WinForms/Applications/Chat.Designer.cs b/ShiftOS.WinForms/Applications/Chat.Designer.cs
index d51b732..7bfa4dd 100644
--- a/ShiftOS.WinForms/Applications/Chat.Designer.cs
+++ b/ShiftOS.WinForms/Applications/Chat.Designer.cs
@@ -54,6 +54,13 @@ namespace ShiftOS.WinForms.Applications
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Chat));
this.panel1 = new System.Windows.Forms.Panel();
+ this.pnlstart = new System.Windows.Forms.Panel();
+ this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ this.txtchatid = new System.Windows.Forms.TextBox();
+ this.btnjoin = new System.Windows.Forms.Button();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
this.rtbchat = new System.Windows.Forms.RichTextBox();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tschatid = new System.Windows.Forms.ToolStripLabel();
@@ -61,18 +68,11 @@ namespace ShiftOS.WinForms.Applications
this.tsbottombar = new System.Windows.Forms.ToolStrip();
this.txtuserinput = new System.Windows.Forms.ToolStripTextBox();
this.btnsend = new System.Windows.Forms.ToolStripButton();
- this.pnlstart = new System.Windows.Forms.Panel();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
- this.txtchatid = new System.Windows.Forms.TextBox();
- this.btnjoin = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
- this.toolStrip1.SuspendLayout();
- this.tsbottombar.SuspendLayout();
this.pnlstart.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
+ this.toolStrip1.SuspendLayout();
+ this.tsbottombar.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -87,6 +87,82 @@ namespace ShiftOS.WinForms.Applications
this.panel1.Size = new System.Drawing.Size(633, 318);
this.panel1.TabIndex = 0;
//
+ // pnlstart
+ //
+ this.pnlstart.Controls.Add(this.flowLayoutPanel1);
+ this.pnlstart.Controls.Add(this.label3);
+ this.pnlstart.Controls.Add(this.label2);
+ this.pnlstart.Controls.Add(this.label1);
+ this.pnlstart.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pnlstart.Location = new System.Drawing.Point(0, 25);
+ this.pnlstart.Name = "pnlstart";
+ this.pnlstart.Size = new System.Drawing.Size(633, 268);
+ this.pnlstart.TabIndex = 4;
+ //
+ // flowLayoutPanel1
+ //
+ this.flowLayoutPanel1.AutoSize = true;
+ this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.flowLayoutPanel1.Controls.Add(this.txtchatid);
+ this.flowLayoutPanel1.Controls.Add(this.btnjoin);
+ this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 118);
+ this.flowLayoutPanel1.Name = "flowLayoutPanel1";
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(633, 29);
+ this.flowLayoutPanel1.TabIndex = 3;
+ //
+ // txtchatid
+ //
+ this.txtchatid.Location = new System.Drawing.Point(3, 3);
+ this.txtchatid.Name = "txtchatid";
+ this.txtchatid.Size = new System.Drawing.Size(192, 20);
+ this.txtchatid.TabIndex = 0;
+ //
+ // btnjoin
+ //
+ this.btnjoin.Location = new System.Drawing.Point(201, 3);
+ this.btnjoin.Name = "btnjoin";
+ this.btnjoin.Size = new System.Drawing.Size(75, 23);
+ this.btnjoin.TabIndex = 1;
+ this.btnjoin.Text = "Join";
+ this.btnjoin.UseVisualStyleBackColor = true;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label3.Location = new System.Drawing.Point(0, 85);
+ this.label3.Name = "label3";
+ this.label3.Padding = new System.Windows.Forms.Padding(10);
+ this.label3.Size = new System.Drawing.Size(79, 33);
+ this.label3.TabIndex = 2;
+ this.label3.Tag = "header3";
+ this.label3.Text = "Join a chat";
+ //
+ // label2
+ //
+ this.label2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label2.Location = new System.Drawing.Point(0, 33);
+ this.label2.Name = "label2";
+ this.label2.Padding = new System.Windows.Forms.Padding(10);
+ this.label2.Size = new System.Drawing.Size(633, 52);
+ this.label2.TabIndex = 1;
+ this.label2.Text = "SimpleSRC is a simple chat program that utilises the ShiftOS Relay Chat protocol." +
+ " All you have to do is enter a chat code or system name, and SimpleSRC will try " +
+ "to initiate a chat for you.";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label1.Location = new System.Drawing.Point(0, 0);
+ this.label1.Name = "label1";
+ this.label1.Padding = new System.Windows.Forms.Padding(10);
+ this.label1.Size = new System.Drawing.Size(143, 33);
+ this.label1.TabIndex = 0;
+ this.label1.Tag = "header1";
+ this.label1.Text = "Welcome to SimpleSRC!";
+ //
// rtbchat
//
this.rtbchat.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -151,82 +227,6 @@ namespace ShiftOS.WinForms.Applications
this.btnsend.Text = "Send";
this.btnsend.Click += new System.EventHandler(this.btnsend_Click);
//
- // pnlstart
- //
- this.pnlstart.Controls.Add(this.flowLayoutPanel1);
- this.pnlstart.Controls.Add(this.label3);
- this.pnlstart.Controls.Add(this.label2);
- this.pnlstart.Controls.Add(this.label1);
- this.pnlstart.Dock = System.Windows.Forms.DockStyle.Fill;
- this.pnlstart.Location = new System.Drawing.Point(0, 25);
- this.pnlstart.Name = "pnlstart";
- this.pnlstart.Size = new System.Drawing.Size(633, 268);
- this.pnlstart.TabIndex = 4;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Dock = System.Windows.Forms.DockStyle.Top;
- this.label1.Location = new System.Drawing.Point(0, 0);
- this.label1.Name = "label1";
- this.label1.Padding = new System.Windows.Forms.Padding(10);
- this.label1.Size = new System.Drawing.Size(143, 33);
- this.label1.TabIndex = 0;
- this.label1.Tag = "header1";
- this.label1.Text = "Welcome to SimpleSRC!";
- //
- // label2
- //
- this.label2.Dock = System.Windows.Forms.DockStyle.Top;
- this.label2.Location = new System.Drawing.Point(0, 33);
- this.label2.Name = "label2";
- this.label2.Padding = new System.Windows.Forms.Padding(10);
- this.label2.Size = new System.Drawing.Size(633, 52);
- this.label2.TabIndex = 1;
- this.label2.Text = "SimpleSRC is a simple chat program that utilises the ShiftOS Relay Chat protocol." +
- " All you have to do is enter a chat code or system name, and SimpleSRC will try " +
- "to initiate a chat for you.";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Dock = System.Windows.Forms.DockStyle.Top;
- this.label3.Location = new System.Drawing.Point(0, 85);
- this.label3.Name = "label3";
- this.label3.Padding = new System.Windows.Forms.Padding(10);
- this.label3.Size = new System.Drawing.Size(79, 33);
- this.label3.TabIndex = 2;
- this.label3.Tag = "header3";
- this.label3.Text = "Join a chat";
- //
- // flowLayoutPanel1
- //
- this.flowLayoutPanel1.AutoSize = true;
- this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
- this.flowLayoutPanel1.Controls.Add(this.txtchatid);
- this.flowLayoutPanel1.Controls.Add(this.btnjoin);
- this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
- this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 118);
- this.flowLayoutPanel1.Name = "flowLayoutPanel1";
- this.flowLayoutPanel1.Size = new System.Drawing.Size(633, 29);
- this.flowLayoutPanel1.TabIndex = 3;
- //
- // txtchatid
- //
- this.txtchatid.Location = new System.Drawing.Point(3, 3);
- this.txtchatid.Name = "txtchatid";
- this.txtchatid.Size = new System.Drawing.Size(192, 20);
- this.txtchatid.TabIndex = 0;
- //
- // btnjoin
- //
- this.btnjoin.Location = new System.Drawing.Point(201, 3);
- this.btnjoin.Name = "btnjoin";
- this.btnjoin.Size = new System.Drawing.Size(75, 23);
- this.btnjoin.TabIndex = 1;
- this.btnjoin.Text = "Join";
- this.btnjoin.UseVisualStyleBackColor = true;
- //
// Chat
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -236,14 +236,14 @@ namespace ShiftOS.WinForms.Applications
this.Size = new System.Drawing.Size(633, 318);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
- this.toolStrip1.ResumeLayout(false);
- this.toolStrip1.PerformLayout();
- this.tsbottombar.ResumeLayout(false);
- this.tsbottombar.PerformLayout();
this.pnlstart.ResumeLayout(false);
this.pnlstart.PerformLayout();
this.flowLayoutPanel1.ResumeLayout(false);
this.flowLayoutPanel1.PerformLayout();
+ this.toolStrip1.ResumeLayout(false);
+ this.toolStrip1.PerformLayout();
+ this.tsbottombar.ResumeLayout(false);
+ this.tsbottombar.PerformLayout();
this.ResumeLayout(false);
}
diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs
index de4888b..2d2b4c5 100644
--- a/ShiftOS.WinForms/Applications/Terminal.cs
+++ b/ShiftOS.WinForms/Applications/Terminal.cs
@@ -232,7 +232,7 @@ namespace ShiftOS.WinForms.Applications
var text = txt.Lines.ToArray();
var text2 = text[text.Length - 1];
var text3 = "";
- Console.WriteLine();
+ txt.AppendText(Environment.NewLine);
var text4 = Regex.Replace(text2, @"\t|\n|\r", "");
if (IsInRemoteSystem == true)
diff --git a/ShiftOS.WinForms/Oobe.cs b/ShiftOS.WinForms/Oobe.cs
index 90395a7..9182b4b 100644
--- a/ShiftOS.WinForms/Oobe.cs
+++ b/ShiftOS.WinForms/Oobe.cs
@@ -302,7 +302,7 @@ namespace ShiftOS.WinForms
var client = new UniteClient("http://getshiftos.ml", token);
var sve = new Save();
- SaveSystem.CurrentUser.Username = client.GetEmail();
+ sve.Username = client.GetEmail();
sve.Password = Guid.NewGuid().ToString();
sve.SystemName = client.GetSysName();
sve.UniteAuthToken = token;
diff --git a/ShiftOS.WinForms/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj
index 9844657..22bd1d2 100644
--- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj
+++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj
@@ -388,6 +388,12 @@
ShiftGames.cs
+
+ UserControl
+
+
+ ShiftSoft_Ping.cs
+
@@ -583,6 +589,9 @@
ShiftGames.cs
+
+ ShiftSoft_Ping.cs
+
UniteLoginDialog.cs
diff --git a/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.Designer.cs b/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.Designer.cs
new file mode 100644
index 0000000..244f6d4
--- /dev/null
+++ b/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.Designer.cs
@@ -0,0 +1,89 @@
+namespace ShiftOS.WinForms.ShiftnetSites
+{
+ partial class ShiftSoft_Ping
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.fllist = new System.Windows.Forms.FlowLayoutPanel();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label1.Location = new System.Drawing.Point(0, 0);
+ this.label1.Name = "label1";
+ this.label1.Padding = new System.Windows.Forms.Padding(10);
+ this.label1.Size = new System.Drawing.Size(48, 33);
+ this.label1.TabIndex = 0;
+ this.label1.Tag = "header2";
+ this.label1.Text = "Ping";
+ //
+ // label2
+ //
+ this.label2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label2.Location = new System.Drawing.Point(0, 33);
+ this.label2.Name = "label2";
+ this.label2.Padding = new System.Windows.Forms.Padding(10);
+ this.label2.Size = new System.Drawing.Size(734, 56);
+ this.label2.TabIndex = 1;
+ this.label2.Text = "Ping is a simple service that lets you see all the sites on the shiftnet/ cluster" +
+ ". These sites are safe for you to use and do not contain malware or other threat" +
+ "s.";
+ //
+ // fllist
+ //
+ this.fllist.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fllist.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.fllist.Location = new System.Drawing.Point(0, 89);
+ this.fllist.Name = "fllist";
+ this.fllist.Size = new System.Drawing.Size(734, 389);
+ this.fllist.TabIndex = 2;
+ //
+ // ShiftSoft_Ping
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.fllist);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.Name = "ShiftSoft_Ping";
+ this.Size = new System.Drawing.Size(734, 478);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.FlowLayoutPanel fllist;
+ }
+}
diff --git a/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.cs b/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.cs
new file mode 100644
index 0000000..1c64390
--- /dev/null
+++ b/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.cs
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.Reflection;
+using System.IO;
+using ShiftOS.Engine;
+using ShiftOS.WinForms.Tools;
+
+namespace ShiftOS.WinForms.ShiftnetSites
+{
+ [ShiftnetSite("shiftnet/shiftsoft/ping", "Ping", "A site listing hosted by ShiftSoft.")]
+ public partial class ShiftSoft_Ping : UserControl, IShiftnetSite
+ {
+ public ShiftSoft_Ping()
+ {
+ InitializeComponent();
+ }
+
+ public event Action GoBack;
+ public event Action GoToUrl;
+
+ public void OnLoad()
+ {
+ SetupListing();
+ }
+
+ public void OnSkinLoad()
+ {
+ ControlManager.SetupControls(this);
+ SetupListing();
+ }
+
+ public void SetupListing()
+ {
+ foreach(var exec in Directory.GetFiles(Environment.CurrentDirectory))
+ {
+ if(exec.ToLower().EndsWith(".exe") || exec.ToLower().EndsWith(".dll"))
+ {
+ try
+ {
+ var asm = Assembly.LoadFile(exec);
+ var types = asm.GetTypes();
+ foreach (var type in types)
+ {
+ if (type.GetInterfaces().Contains(typeof(IShiftnetSite)))
+ {
+ var attr = type.GetCustomAttributes(false).Where(x => x is ShiftnetSiteAttribute) as ShiftnetSiteAttribute;
+ if (attr != null)
+ {
+ var lnk = new LinkLabel();
+ lnk.LinkColor = SkinEngine.LoadedSkin.ControlTextColor;
+ lnk.Tag = "header3";
+ lnk.Text = attr.Name;
+ var desc = new Label();
+ desc.AutoSize = true;
+ lnk.AutoSize = true;
+ desc.MaximumSize = new Size(this.Width / 3, 0);
+ desc.Text = attr.Description;
+ lnk.Click += (o, a) =>
+ {
+ GoToUrl?.Invoke(attr.Url);
+ };
+ fllist.Controls.Add(lnk);
+ fllist.Controls.Add(desc);
+ ControlManager.SetupControls(lnk);
+ lnk.Show();
+ desc.Show();
+ }
+ }
+ }
+ }
+ catch { }
+ }
+ }
+ }
+
+ public void OnUpgrade()
+ {
+ }
+
+ public void Setup()
+ {
+ SetupListing();
+ }
+ }
+}
diff --git a/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.resx b/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/ShiftOS.WinForms/ShiftnetSites/ShiftSoft_Ping.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ShiftOS.WinForms/Stories/LegionStory.cs b/ShiftOS.WinForms/Stories/LegionStory.cs
index 433ad2d..a0fc9bf 100644
--- a/ShiftOS.WinForms/Stories/LegionStory.cs
+++ b/ShiftOS.WinForms/Stories/LegionStory.cs
@@ -51,6 +51,8 @@ namespace ShiftOS.WinForms.Stories
Desktop.InvokeOnWorkerThread(() =>
{
Story.Start("installer");
+ while (!Shiftorium.UpgradeInstalled("installer"))
+ Thread.Sleep(20);
AppearanceManager.SetupWindow(installer);
installer.InitiateInstall(new ShiftnetInstallation());
});
@@ -64,6 +66,10 @@ namespace ShiftOS.WinForms.Stories
WriteLine("There are also lots of companies offering many services.");
WriteLine("I'd stay on the shiftnet/ cluster though, others may be dangerous.");
WriteLine("I'd also stick to the sites listed on shiftnet/shiftsoft/ping - that site is regularly updated with the most safe Shiftnet sites.");
+ WriteLine("Oh, that reminds me. I have set you up with ShiftSoft's service provider, Freebie Solutions.");
+ WriteLine("It's a free provider, but it offers only 256 bytes per second download and upload speeds.");
+ WriteLine("You may want to go look for another provider when you can afford it.");
+ WriteLine("Trust me - with this provider, things get slow.");
WriteLine("Anyways, it was nice meeting you, hopefully someday you'll give theShell a try.");
TerminalBackend.PrefixEnabled = true;