Changed: clean-up

This commit is contained in:
Ray 2020-11-09 00:59:25 +00:00
parent 17ac0a4355
commit 80691f77ce

View File

@ -128,17 +128,6 @@ namespace AppLauncher.Windows.Forms
//this.Size = new Size(panel1.Width, this.ExpandedHeight); //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) protected override async void OnResize(EventArgs e)
{ {
base.OnResize(e); base.OnResize(e);
@ -146,7 +135,7 @@ namespace AppLauncher.Windows.Forms
await this.InvalidateContainer(); await this.InvalidateContainer();
} }
protected override async void OnMouseClick(MouseEventArgs e) protected override void OnMouseClick(MouseEventArgs e)
{ {
base.OnMouseClick(e); base.OnMouseClick(e);
@ -156,38 +145,7 @@ namespace AppLauncher.Windows.Forms
if (e.Button == MouseButtons.Left) if (e.Button == MouseButtons.Left)
{ {
//if (isLabel) // do nothing
//{
// 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<TTilePanelLayout>())
// {
// if (item.Equals(this))
// {
// continue;
// }
// await item.Collapse();
// }
// }
// }
// }
//}
//else
//{
// // do nothing
//}
} }
else if (e.Button == MouseButtons.Right) else if (e.Button == MouseButtons.Right)
{ {
@ -844,7 +802,5 @@ namespace AppLauncher.Windows.Forms
} }
} }
} }
} }