diff --git a/ShiftOS.WinForms/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj index 3edfd38..a8d1aaa 100644 --- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj +++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj @@ -323,6 +323,12 @@ AppscapeMain.cs + + UserControl + + + DesktopWidgetWebsite.cs + UserControl @@ -478,6 +484,9 @@ AppscapeMain.cs + + DesktopWidgetWebsite.cs + MainHomepage.cs diff --git a/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.Designer.cs b/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.Designer.cs new file mode 100644 index 0000000..4ab4b21 --- /dev/null +++ b/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.Designer.cs @@ -0,0 +1,45 @@ +namespace ShiftOS.WinForms.ShiftnetSites +{ + partial class DesktopWidgetWebsite + { + /// + /// 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.SuspendLayout(); + // + // DesktopWidgetWebsite + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Name = "DesktopWidgetWebsite"; + this.Size = new System.Drawing.Size(436, 293); + this.ResumeLayout(false); + + } + + #endregion + } +} diff --git a/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.cs b/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.cs new file mode 100644 index 0000000..c39cbf0 --- /dev/null +++ b/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.cs @@ -0,0 +1,44 @@ +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 ShiftOS.Engine; + +namespace ShiftOS.WinForms.ShiftnetSites +{ + [ShiftnetSite("shiftnet/superdesk", "SuperDesk", "Empower the ShiftOS Desktop like never before.")] + [ShiftnetFundamental] + public partial class DesktopWidgetWebsite : UserControl, Engine.IShiftnetSite + { + public DesktopWidgetWebsite() + { + InitializeComponent(); + this.Click += (o, a) => + { + GoToUrl?.Invoke("shiftnet/main"); + Infobox.Show("Haha!", "You thought this would do something else. But no!"); + }; + } + + public event Action GoBack; + public event Action GoToUrl; + + public void OnSkinLoad() + { + } + + public void OnUpgrade() + { + } + + public void Setup() + { + + } + } +} diff --git a/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.resx b/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.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