diff options
| author | Rylan <[email protected]> | 2017-01-14 16:52:07 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-14 16:52:07 -0500 |
| commit | ed5c1d67d2581593ab6221abd5849be8b4e0f25e (patch) | |
| tree | eedba637b419ed4c2d26712b5760d165e1ebdaa6 /ShiftOS.WinForms | |
| parent | 6d625daab8864be147933f5b588178540dd45a53 (diff) | |
| parent | 81baf6b5c7cfbb7eefdd11b5545a60283ba01fcf (diff) | |
| download | shiftos_thereturn-ed5c1d67d2581593ab6221abd5849be8b4e0f25e.tar.gz shiftos_thereturn-ed5c1d67d2581593ab6221abd5849be8b4e0f25e.tar.bz2 shiftos_thereturn-ed5c1d67d2581593ab6221abd5849be8b4e0f25e.zip | |
Merge pull request #36 from carverh/patch-19
Update WinformsDesktop.cs with comments
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 66 |
1 files changed, 65 insertions, 1 deletions
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; +/// <summary> +/// Winforms desktop. +/// </summary> namespace ShiftOS.WinForms { + /// <summary> + /// Winforms desktop. + /// </summary> public partial class WinformsDesktop : Form, IDesktop { + /// <summary> + /// Occurs when window added. + /// </summary> private static event Action<WindowBorder> windowAdded; + /// <summary> + /// Initializes a new instance of the <see cref="ShiftOS.WinForms.WinformsDesktop"/> class. + /// </summary> public WinformsDesktop() { InitializeComponent(); @@ -97,6 +109,10 @@ namespace ShiftOS.WinForms this.DoubleBuffered = true; } + /// <summary> + /// Populates the panel buttons. + /// </summary> + /// <returns>The panel buttons.</returns> public void PopulatePanelButtons() { panelbuttonholder.Controls.Clear(); @@ -138,6 +154,10 @@ namespace ShiftOS.WinForms } } + /// <summary> + /// Setups the desktop. + /// </summary> + /// <returns>The desktop.</returns> public void SetupDesktop() { ToolStripManager.Renderer = new ShiftOSMenuRenderer(); @@ -208,6 +228,11 @@ namespace ShiftOS.WinForms PopulatePanelButtons(); } + /// <summary> + /// Populates the app launcher. + /// </summary> + /// <returns>The app launcher.</returns> + /// <param name="items">Items.</param> public void PopulateAppLauncher(LauncherItem[] items) { apps.DropDownItems.Clear(); @@ -238,7 +263,12 @@ namespace ShiftOS.WinForms } - + /// <summary> + /// Desktops the load. + /// </summary> + /// <returns>The load.</returns> + /// <param name="sender">Sender.</param> + /// <param name="e">E.</param> private void Desktop_Load(object sender, EventArgs e) { @@ -247,6 +277,11 @@ namespace ShiftOS.WinForms SetupDesktop(); } + /// <summary> + /// Shows the window. + /// </summary> + /// <returns>The window.</returns> + /// <param name="border">Border.</param> public void ShowWindow(IWindowBorder border) { var brdr = border as Form; @@ -255,31 +290,60 @@ namespace ShiftOS.WinForms brdr.TopMost = true; } + /// <summary> + /// Kills the window. + /// </summary> + /// <returns>The window.</returns> + /// <param name="border">Border.</param> public void KillWindow(IWindowBorder border) { throw new NotImplementedException(); } + /// <summary> + /// Minimizes the window. + /// </summary> + /// <returns>The window.</returns> + /// <param name="brdr">Brdr.</param> public void MinimizeWindow(IWindowBorder brdr) { throw new NotImplementedException(); } + /// <summary> + /// Maximizes the window. + /// </summary> + /// <returns>The window.</returns> + /// <param name="brdr">Brdr.</param> public void MaximizeWindow(IWindowBorder brdr) { throw new NotImplementedException(); } + /// <summary> + /// Restores the window. + /// </summary> + /// <returns>The window.</returns> + /// <param name="brdr">Brdr.</param> public void RestoreWindow(IWindowBorder brdr) { throw new NotImplementedException(); } + /// <summary> + /// Invokes the on worker thread. + /// </summary> + /// <returns>The on worker thread.</returns> + /// <param name="act">Act.</param> public void InvokeOnWorkerThread(Action act) { this.Invoke(act); } + /// <summary> + /// Gets the size. + /// </summary> + /// <returns>The size.</returns> public Size GetSize() { return this.Size; |
