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,103 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace HZH_Controls
{
public partial class FrmSelectImage : Form
{
public Image SelectImage { get; set; }
public FrmSelectImage()
{
try
{
InitializeComponent();
}
catch (Exception exc)
{
MessageBox.Show(exc.ToString(), "错误");
}
}
private void tabControlExt1_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControlExt1.SelectedIndex == 0)
this.ActiveControl = this.flowLayoutPanel1;
else
this.ActiveControl = this.flowLayoutPanel2;
}
private void FrmSelectImage_Load(object sender, EventArgs e)
{
string[] nameList = System.Enum.GetNames(typeof(HZH_Controls.FontIcons));
var lst = nameList.ToList();
lst.Sort();
foreach (var item in lst)
{
HZH_Controls.FontIcons icon = (HZH_Controls.FontIcons)Enum.Parse(typeof(HZH_Controls.FontIcons), item);
Label lbl = new Label();
lbl.AutoSize = false;
lbl.Size = new System.Drawing.Size(300, 35);
lbl.ForeColor = Color.FromArgb(255, 77, 59);
lbl.TextAlign = ContentAlignment.MiddleLeft;
lbl.Margin = new System.Windows.Forms.Padding(5);
lbl.DoubleClick += lbl_DoubleClick;
string s = char.ConvertFromUtf32((int)icon);
lbl.Text = " " + item;
lbl.Image = HZH_Controls.FontImages.GetImage(icon, 32, Color.FromArgb(255, 77, 59));
lbl.ImageAlign = ContentAlignment.MiddleLeft;
lbl.Font = new Font("微软雅黑", 12);
lbl.Tag = icon;
if (item.StartsWith("A_"))
{
flowLayoutPanel1.Controls.Add(lbl);
}
else
{
flowLayoutPanel2.Controls.Add(lbl);
}
}
this.ActiveControl = this.flowLayoutPanel1;
}
void lbl_DoubleClick(object sender, EventArgs e)
{
Label lbl = sender as Label;
HZH_Controls.FontIcons icon = (HZH_Controls.FontIcons)lbl.Tag;
int intSize = ucTextBoxEx1.InputText.ToInt();
if (intSize <= 0)
intSize = 32;
SelectImage = HZH_Controls.FontImages.GetImage(icon, intSize, txtForeColor.BackColor, txtBackcolor.BackColor == Color.White ? Color.Empty : txtBackcolor.BackColor);
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
private void textBox1_DoubleClick(object sender, EventArgs e)
{
TextBox txt = sender as TextBox;
ColorDialog ColorForm = new ColorDialog();
ColorForm.AnyColor = true;
List<int> lstCustomColors = new List<int>();
for (int i = 0; i < 16; i++)
{
lstCustomColors.Add(ColorTranslator.ToOle(ControlHelper.Colors[i]));
}
ColorForm.CustomColors = lstCustomColors.ToArray();
if (ColorForm.ShowDialog() == DialogResult.OK)
{
Color GetColor = ColorForm.Color;
txt.BackColor = GetColor;
txt.Text = GetColor.R + "," + GetColor.G + "," + GetColor.B;
}
}
}
}