尺寸测量功能界面
This commit is contained in:
38
CanFly/UI/GuidePanel/CtrlTitleBar.cs
Normal file
38
CanFly/UI/GuidePanel/CtrlTitleBar.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CanFly.UI.GuidePanel
|
||||
{
|
||||
public partial class CtrlTitleBar : UserControl
|
||||
{
|
||||
public event Action? OnCloseClicked;
|
||||
|
||||
|
||||
|
||||
[DisplayName("Title")]
|
||||
public string Title
|
||||
{
|
||||
get { return this.j.Text; }
|
||||
set { this.j.Text = value; }
|
||||
}
|
||||
|
||||
|
||||
public CtrlTitleBar()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Dock = DockStyle.Top;
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnCloseClicked?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user