diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 87d0ebb..1dd2dd7 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -35,12 +35,24 @@ using ShiftOS.Engine; using static ShiftOS.Engine.SkinEngine; using ShiftOS.WinForms.Tools; +/// +/// Winforms desktop. +/// namespace ShiftOS.WinForms { + /// + /// Winforms desktop. + /// public partial class WinformsDesktop : Form, IDesktop { + /// + /// Occurs when window added. + /// private static event Action windowAdded; + /// + /// Initializes a new instance of the class. + /// public WinformsDesktop() { InitializeComponent(); @@ -97,6 +109,10 @@ namespace ShiftOS.WinForms this.DoubleBuffered = true; } + /// + /// Populates the panel buttons. + /// + /// The panel buttons. public void PopulatePanelButtons() { panelbuttonholder.Controls.Clear(); @@ -138,6 +154,10 @@ namespace ShiftOS.WinForms } } + /// + /// Setups the desktop. + /// + /// The desktop. public void SetupDesktop() { ToolStripManager.Renderer = new ShiftOSMenuRenderer(); @@ -208,6 +228,11 @@ namespace ShiftOS.WinForms PopulatePanelButtons(); } + /// + /// Populates the app launcher. + /// + /// The app launcher. + /// Items. public void PopulateAppLauncher(LauncherItem[] items) { apps.DropDownItems.Clear(); @@ -238,7 +263,12 @@ namespace ShiftOS.WinForms } - + /// + /// Desktops the load. + /// + /// The load. + /// Sender. + /// E. private void Desktop_Load(object sender, EventArgs e) { @@ -247,6 +277,11 @@ namespace ShiftOS.WinForms SetupDesktop(); } + /// + /// Shows the window. + /// + /// The window. + /// Border. public void ShowWindow(IWindowBorder border) { var brdr = border as Form; @@ -255,31 +290,60 @@ namespace ShiftOS.WinForms brdr.TopMost = true; } + /// + /// Kills the window. + /// + /// The window. + /// Border. public void KillWindow(IWindowBorder border) { throw new NotImplementedException(); } + /// + /// Minimizes the window. + /// + /// The window. + /// Brdr. public void MinimizeWindow(IWindowBorder brdr) { throw new NotImplementedException(); } + /// + /// Maximizes the window. + /// + /// The window. + /// Brdr. public void MaximizeWindow(IWindowBorder brdr) { throw new NotImplementedException(); } + /// + /// Restores the window. + /// + /// The window. + /// Brdr. public void RestoreWindow(IWindowBorder brdr) { throw new NotImplementedException(); } + /// + /// Invokes the on worker thread. + /// + /// The on worker thread. + /// Act. public void InvokeOnWorkerThread(Action act) { this.Invoke(act); } + /// + /// Gets the size. + /// + /// The size. public Size GetSize() { return this.Size;