1、优化LOG显示与引用

2、添加PMA工具,工具内容待完善
3、修复流程树显示
4、添加开源项目,优化UI空间
5、其他BUG更改
This commit is contained in:
liu.wenjie
2021-11-23 15:51:37 +08:00
parent 47f77f5e64
commit a24dda2525
474 changed files with 91916 additions and 6429 deletions

View File

@@ -0,0 +1,102 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-10-15
//
// ***********************************************************************
// <copyright file="UCPanelQuote.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HZH_Controls.Controls
{
/// <summary>
/// Class UCPanelQuote.
/// Implements the <see cref="System.Windows.Forms.Panel" />
/// </summary>
/// <seealso cref="System.Windows.Forms.Panel" />
public class UCPanelQuote : Panel
{
/// <summary>
/// The border color
/// </summary>
private Color borderColor = LineColors.Light;
/// <summary>
/// Gets or sets the color of the border.
/// </summary>
/// <value>The color of the border.</value>
[Description("边框颜色"), Category("自定义")]
public Color BorderColor
{
get { return borderColor; }
set
{
borderColor = value;
this.Invalidate();
}
}
/// <summary>
/// The left color
/// </summary>
private Color leftColor = StatusColors.Danger;
/// <summary>
/// Gets or sets the color of the left.
/// </summary>
/// <value>The color of the left.</value>
[Description("左侧颜色"), Category("自定义")]
public Color LeftColor
{
get { return leftColor; }
set
{
leftColor = value;
this.Invalidate();
}
}
/// <summary>
/// Initializes a new instance of the <see cref="UCPanelQuote"/> class.
/// </summary>
public UCPanelQuote()
: base()
{
Padding = new Padding(5, 1, 1, 1);
}
/// <summary>
/// 引发 <see cref="E:System.Windows.Forms.Control.Paint" /> 事件。
/// </summary>
/// <param name="e">包含事件数据的 <see cref="T:System.Windows.Forms.PaintEventArgs" />。</param>
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
e.Graphics.SetGDIHigh();
e.Graphics.DrawLines(new Pen(borderColor), new Point[]
{
new Point(e.ClipRectangle.Left,e.ClipRectangle.Top),
new Point(e.ClipRectangle.Right-1,e.ClipRectangle.Top),
new Point(e.ClipRectangle.Right-1,e.ClipRectangle.Bottom-1),
new Point(e.ClipRectangle.Left,e.ClipRectangle.Bottom-1),
new Point(e.ClipRectangle.Left,e.ClipRectangle.Top)
});
e.Graphics.FillRectangle(new SolidBrush(leftColor), new Rectangle(0, 0, 5, this.Height));
}
}
}