diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index fdb249a..ac5198a 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -43,19 +43,19 @@ using ShiftOS.Engine.Scripting; /// namespace ShiftOS.WinForms { - /// - /// Winforms desktop. - /// + /// + /// Winforms desktop. + /// public partial class WinformsDesktop : Form, IDesktop { - /// - /// Occurs when window added. - /// + /// + /// Occurs when window added. + /// private static event Action windowAdded; - /// - /// Initializes a new instance of the class. - /// + /// + /// Initializes a new instance of the class. + /// public WinformsDesktop() { InitializeComponent(); @@ -68,8 +68,9 @@ namespace ShiftOS.WinForms }; - NotificationDaemon.NotificationRead += (note) => + NotificationDaemon.NotificationRead += () => { + //Soon this will pop a balloon note. btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")"; }; @@ -92,7 +93,7 @@ namespace ShiftOS.WinForms SaveSystem.GameReady += () => { - if(this.Visible == true) + if (this.Visible == true) this.Invoke(new Action(() => SetupDesktop())); this.Invoke(new Action(() => { @@ -101,7 +102,7 @@ namespace ShiftOS.WinForms }; Shiftorium.Installed += () => { - if(this.Visible == true) + if (this.Visible == true) this.Invoke(new Action(() => SetupDesktop())); }; var time = new Timer(); @@ -146,10 +147,10 @@ namespace ShiftOS.WinForms this.DoubleBuffered = true; } - /// - /// Populates the panel buttons. - /// - /// The panel buttons. + /// + /// Populates the panel buttons. + /// + /// The panel buttons. public void PopulatePanelButtons() { if (DesktopFunctions.ShowDefaultElements == true) @@ -228,10 +229,10 @@ namespace ShiftOS.WinForms LuaInterpreter.RaiseEvent("on_panelbutton_populate", this); } - /// - /// Setups the desktop. - /// - /// The desktop. + /// + /// Setups the desktop. + /// + /// The desktop. public void SetupDesktop() { if (DesktopFunctions.ShowDefaultElements == true) @@ -317,7 +318,7 @@ namespace ShiftOS.WinForms public ToolStripMenuItem GetALCategoryWithName(string text) { - foreach(ToolStripMenuItem menuitem in apps.DropDownItems) + foreach (ToolStripMenuItem menuitem in apps.DropDownItems) { if (menuitem.Text == text) return menuitem; @@ -329,11 +330,11 @@ namespace ShiftOS.WinForms return itm; } - /// - /// Populates the app launcher. - /// - /// The app launcher. - /// Items. + /// + /// Populates the app launcher. + /// + /// The app launcher. + /// Items. public void PopulateAppLauncher(LauncherItem[] items) { if (DesktopFunctions.ShowDefaultElements == true) @@ -416,12 +417,12 @@ namespace ShiftOS.WinForms } - /// - /// Desktops the load. - /// - /// The load. - /// Sender. - /// E. + /// + /// Desktops the load. + /// + /// The load. + /// Sender. + /// E. private void Desktop_Load(object sender, EventArgs e) { @@ -456,11 +457,11 @@ namespace ShiftOS.WinForms brdr.TopMost = true; } - /// - /// Kills the window. - /// - /// The window. - /// Border. + /// + /// Kills the window. + /// + /// The window. + /// Border. public void KillWindow(IWindowBorder border) { border.Close(); @@ -493,11 +494,11 @@ namespace ShiftOS.WinForms (brdr as WindowBorder).Location = new Point(this.GetSize().Width * 2, this.GetSize().Height * 2); } - /// - /// Maximizes the window. - /// - /// The window. - /// Brdr. + /// + /// Maximizes the window. + /// + /// The window. + /// Brdr. public void MaximizeWindow(IWindowBorder brdr) { int startY = (LoadedSkin.DesktopPanelPosition == 1) ? 0 : LoadedSkin.DesktopPanelHeight; @@ -544,10 +545,10 @@ namespace ShiftOS.WinForms apps.ShowDropDown(); } - /// - /// Gets the size. - /// - /// The size. + /// + /// Gets the size. + /// + /// The size. public Size GetSize() { return this.Size; @@ -608,4 +609,4 @@ namespace ShiftOS.WinForms } } } -} +} \ No newline at end of file diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs index 1737be3..f9bfed2 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -72,7 +72,7 @@ namespace ShiftOS.Engine Type = t; Data = data; Read = false; - Timestamp = DateTime.Now; + Timestamp = DateTime.Now; } public bool Read { get; set; } @@ -106,4 +106,4 @@ namespace ShiftOS.Engine NewShiftOSStream = 0x78, SavePurge = 0x79, } -} +} \ No newline at end of file