From 80691f77cee7880b3db94c23796ba67c8fa67209 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 9 Nov 2020 00:59:25 +0000 Subject: [PATCH] Changed: clean-up --- Windows/Forms/Tile/TTilePanelLayout.cs | 48 ++------------------------ 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/Windows/Forms/Tile/TTilePanelLayout.cs b/Windows/Forms/Tile/TTilePanelLayout.cs index 2e99b6c..53e62a8 100644 --- a/Windows/Forms/Tile/TTilePanelLayout.cs +++ b/Windows/Forms/Tile/TTilePanelLayout.cs @@ -128,17 +128,6 @@ namespace AppLauncher.Windows.Forms //this.Size = new Size(panel1.Width, this.ExpandedHeight); } - //protected override void OnPaint(PaintEventArgs e) - //{ - // base.OnPaint(e); - - // Graphics g = e.Graphics; - - //g.DrawImageUnscaled((isChecked ? Properties.Resources.toggle_right_ea_16 : Properties.Resources.toggle_left_ea_16), 2, 2); - - //TextRenderer.DrawText(g, groupModel?.Title, new Font(this.Font.FontFamily, 8.25F), new Point(25, 4), Color.FromArgb(99, 105, 119)); - //} - protected override async void OnResize(EventArgs e) { base.OnResize(e); @@ -146,7 +135,7 @@ namespace AppLauncher.Windows.Forms await this.InvalidateContainer(); } - protected override async void OnMouseClick(MouseEventArgs e) + protected override void OnMouseClick(MouseEventArgs e) { base.OnMouseClick(e); @@ -156,38 +145,7 @@ namespace AppLauncher.Windows.Forms if (e.Button == MouseButtons.Left) { - //if (isLabel) - //{ - // isChecked = !isChecked; - - // this.Invalidate(); - - // await this.InvalidateContainer(); - - // // exclusivity - // if (isChecked) - // { - // if (this.Model.IsExclusive) - // { - // if (this.FlowLayoutPanel != null) - // { - // foreach (TTilePanelLayout item in this.FlowLayoutPanel.Controls.OfType()) - // { - // if (item.Equals(this)) - // { - // continue; - // } - - // await item.Collapse(); - // } - // } - // } - // } - //} - //else - //{ - // // do nothing - //} + // do nothing } else if (e.Button == MouseButtons.Right) { @@ -844,7 +802,5 @@ namespace AppLauncher.Windows.Forms } } - - } }