提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+36 -1
View File
@@ -1,4 +1,39 @@
namespace Lskj.Main.Control
{
partial
partial class BackgroundPanel
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
this.ResumeLayout(false);
}
#endregion
}
}
+25 -1
View File
@@ -46,4 +46,28 @@ namespace Lskj.Main.Control
// 1. 计算等比缩放比例(以Panel的ClientSize为基准)
float scaleX = (float)this.ClientSize.Width / _originalBackgroundImage.Width;
float scaleY = (float)this.ClientSize.Height / _originalBackgroundImage.Height;
float scale = Math.Min(scaleX, sc
float scale = Math.Min(scaleX, scaleY); // 取较小值,避免图片超出Panel
// 2. 计算图片绘制的位置(居中显示)
int newWidth = (int)(_originalBackgroundImage.Width * scale);
int newHeight = (int)(_originalBackgroundImage.Height * scale);
int x = (this.ClientSize.Width - newWidth) / 2;
int y = (this.ClientSize.Height - newHeight) / 2;
// 3. 高质量绘制图片(抗锯齿、高清缩放)
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
e.Graphics.DrawImage(_originalBackgroundImage, new Rectangle(x, y, newWidth, newHeight));
}
// Panel大小变化时触发重绘
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
Invalidate(); // 标记控件需要重绘
}
}
}
+27 -1
View File
@@ -53,4 +53,30 @@
this.lbl_mark_num.AutoSize = true;
this.lbl_mark_num.BackColor = System.Drawing.Color.Red;
this.lbl_mark_num.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_mark_num.Fore
this.lbl_mark_num.ForeColor = System.Drawing.Color.White;
this.lbl_mark_num.Location = new System.Drawing.Point(3, 6);
this.lbl_mark_num.Name = "lbl_mark_num";
this.lbl_mark_num.Size = new System.Drawing.Size(19, 12);
this.lbl_mark_num.TabIndex = 6;
this.lbl_mark_num.Text = "99";
this.lbl_mark_num.Visible = false;
//
// CornerLab
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.lbl_mark_num);
this.Controls.Add(this.cb_mark);
this.Name = "CornerLab";
this.Size = new System.Drawing.Size(24, 24);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.MenuItem_Paint);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Lskj.Control.CircleButton cb_mark;
private System.Windows.Forms.Label lbl_mark_num;
}
}
+26 -1
View File
@@ -72,4 +72,29 @@ namespace Lskj.Main.Control
this.whiteLab.BackColor = System.Drawing.Color.White;
this.whiteLab.Dock = System.Windows.Forms.DockStyle.Left;
this.whiteLab.Location = new System.Drawing.Point(0, 0);
this.whiteLab.Nam
this.whiteLab.Name = "whiteLab";
this.whiteLab.Size = new System.Drawing.Size(20, 26);
this.whiteLab.TabIndex = 1;
//
// GroupControl
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.menuMainPanel);
this.Controls.Add(this.topTipsPanel);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "GroupControl";
this.Padding = new System.Windows.Forms.Padding(0, 16, 0, 0);
this.Size = new System.Drawing.Size(757, 323);
this.topTipsPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel topTipsPanel;
private System.Windows.Forms.Label tipsLab;
private System.Windows.Forms.Panel menuMainPanel;
private System.Windows.Forms.Label whiteLab;
}
}
Binary file not shown.
+25 -1
View File
@@ -197,4 +197,28 @@ namespace Lskj.Main.Control
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "GroupPage";
this.Size = new System.Drawing.Size(803, 576);
this.allPanel.ResumeLayout(fals
this.allPanel.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panelSplit.ResumeLayout(false);
this.topTipsPanel.ResumeLayout(false);
this.collectPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel allPanel;
private System.Windows.Forms.Panel allMenuPanel;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label allTipsLab;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panelSplit;
private System.Windows.Forms.Label labelSplit;
private System.Windows.Forms.Label labelSplitTop;
private System.Windows.Forms.Panel topTipsPanel;
private System.Windows.Forms.Label collectTipsLab;
private System.Windows.Forms.Label whiteLab;
private System.Windows.Forms.Panel collectMenuPanel;
private System.Windows.Forms.Panel collectPanel;
}
}
Binary file not shown.
+20 -1
View File
@@ -1276,4 +1276,23 @@
private System.Windows.Forms.Panel pl_center_main_bottom_right_main;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label lblShortcutset;
private System.Windows.
private System.Windows.Forms.FlowLayoutPanel pl_center_main_middle_FlowLayout;
private System.Windows.Forms.Label lblMenuTitle2;
private AwaitScreenControl awaitScreenControl;
private System.Windows.Forms.Panel pl_center_left;
private System.Windows.Forms.Panel allPanel;
private System.Windows.Forms.Panel allMenuPanel;
private System.Windows.Forms.Panel botTipsPanel;
private System.Windows.Forms.Label allTipsLab;
private System.Windows.Forms.Panel panelSplit;
private System.Windows.Forms.Label labelSplit;
private System.Windows.Forms.Label labelSplitTop;
private System.Windows.Forms.Panel collectPanel;
private System.Windows.Forms.Panel topTipsPanel;
private System.Windows.Forms.Label collectTipsLab;
private System.Windows.Forms.Panel collectMenuPanel;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label whiteLab;
private TreeViewCustom tv_left;
}
}
File diff suppressed because it is too large Load Diff
+29 -1
View File
@@ -73,4 +73,32 @@
this.cb_mark.ForeColor = System.Drawing.Color.White;
this.cb_mark.ImageHover = null;
this.cb_mark.ImageNormal = null;
this.cb_mark.Location = new System.Drawing.Point(75
this.cb_mark.Location = new System.Drawing.Point(75, 6);
this.cb_mark.Name = "cb_mark";
this.cb_mark.Number = 0;
this.cb_mark.Radius = 10;
this.cb_mark.TabIndex = 4;
this.cb_mark.UseVisualStyleBackColor = false;
this.cb_mark.Visible = false;
//
// Menu_Item
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.cb_mark);
this.Controls.Add(this.btn_item_img);
this.Controls.Add(this.btn_item_title);
this.Name = "Menu_Item";
this.Size = new System.Drawing.Size(110, 127);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_item_img;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.Label btn_item_title;
private Lskj.Control.CircleButton cb_mark;
}
}
+27 -1
View File
@@ -203,4 +203,30 @@ namespace Lskj.Main.Control
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
int x = 0;
int y = 0;
int thisWi
int thisWidth = this.Width;
int thisHeight = this.Height;
int angle = _radius;
if (angle > 0)
{
System.Drawing.Graphics g = CreateGraphics();
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
oPath.CloseAllFigures();
Region = new System.Drawing.Region(oPath);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}
+25 -1
View File
@@ -86,4 +86,28 @@
// Menu_ItemNew
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.Controls.Add(this.badgeDot);
this.Controls.Add(this.btn_icon);
this.Controls.Add(this.badgeNum);
this.Controls.Add(this.lbl_title);
this.Controls.Add(this.lbl_sub);
this.DoubleBuffered = true;
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "Menu_ItemNew";
this.Size = new System.Drawing.Size(240, 70);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.Button btn_icon;
private Lskj.Control.CircleButton badgeDot;
private System.Windows.Forms.Label badgeNum;
private System.Windows.Forms.Label lbl_title;
private System.Windows.Forms.Label lbl_sub;
}
}
+29 -1
View File
@@ -119,4 +119,32 @@ namespace Lskj.Main.Control
if (ClientRectangle.Contains(PointToClient(System.Windows.Forms.Control.MousePosition))) return;
_isHover = false;
//BackColor = _normalBack;
btn_icon.BackgroundImage = _imgDefault;
this.BackgroundImage = null;
Invalidate();
Update();
}
private void BindHover(System.Windows.Forms.Control ctl)
{
ctl.MouseEnter += HoverEnter;
ctl.MouseLeave += HoverLeave;
}
/* ===== 角标定位 ===== */
protected override void OnResize(EventArgs e)
{ base.OnResize(e); RepositionBadge(); }
private void RepositionBadge()
{
if (!badgeDot.Visible) return;
const int SAFE = 2; // 距离边缘 2px
//badgeDot.Location = new Point(
// Math.Min(btn_icon.Right - badgeDot.Width / 2, Width - badgeDot.Width - SAFE),
// Math.Max(btn_icon.Top - badgeDot.Height / 2, SAFE));
/* 数字已 Dock/Size 居中,无需再调位置,但保证层级 */
badgeDot.BringToFront();
badgeNum.BringToFront();
}
}
}
+22 -1
View File
@@ -59,4 +59,25 @@ namespace Lskj.Main.Control
MessageUtil.Show(Message, ex.Message);
}
}
private voi
private void OnMouseClick(object sender, MouseEventArgs e)
{
try
{
DevExpress.XtraEditors.SimpleButton btn = (DevExpress.XtraEditors.SimpleButton)sender;
this.Hide();
string text = !string.IsNullOrWhiteSpace(SystemInfo.Instance.ResSwitchingPrompt) ? SystemInfo.Instance.ResSwitchingPrompt : "更改分辨率将退回至主界面\r\n是否继续?";
if (MessageUtil.Show(text, MessageBoxButtons.YesNo) == DialogResult.Yes)
{
Lskj.Control.Model.AutoSizeChange.value = Convert.ToDouble(btn.Tag);
IniHelper.Write(string.Format("DefaultControlScaling_{0}", "Save"), btn.Tag.ToString());
_clickEvent(this, e);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}
+27 -1
View File
@@ -67,4 +67,30 @@ namespace Lskj.Main.Control
// label
//
this.label.Dock = System.Windows.Forms.DockStyle.Fill;
thi
this.label.Location = new System.Drawing.Point(41, 0);
this.label.Name = "label";
this.label.Size = new System.Drawing.Size(121, 42);
this.label.TabIndex = 5;
this.label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// SimpleControl
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoSize = true;
this.Controls.Add(this.label);
this.Controls.Add(this.circleButton);
this.Controls.Add(this.picBox);
this.Name = "SimpleControl";
this.Size = new System.Drawing.Size(204, 42);
((System.ComponentModel.ISupportInitialize)(this.picBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox picBox;
private Lskj.Control.CircleButton circleButton;
private System.Windows.Forms.Label label;
}
}
Binary file not shown.