aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/ShiftnetSites/DesktopWidgetWebsite.cs
blob: c39cbf09c8543979233bdf050ea1d2441a12e74b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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<string> GoToUrl;

        public void OnSkinLoad()
        {
        }

        public void OnUpgrade()
        {
        }

        public void Setup()
        {

        }
    }
}