From fa87a558389d9d425f70afa1c8de54c69875ef2c Mon Sep 17 00:00:00 2001 From: d23004 <kimseijin@diteam.co.kr> Date: 수, 24 5월 2023 13:35:37 +0900 Subject: [PATCH] Revert "Revert "Main gui 개선"" --- SA_LTT_UI/SA_LTT_UI/UserControls/TitleBox.cs | 65 ++++++++++++++++++++++++++++++++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/SA_LTT_UI/SA_LTT_UI/UserControls/TitleBox.cs b/SA_LTT_UI/SA_LTT_UI/UserControls/TitleBox.cs new file mode 100644 index 0000000..fc5f367 --- /dev/null +++ b/SA_LTT_UI/SA_LTT_UI/UserControls/TitleBox.cs @@ -0,0 +1,65 @@ +癤퓎sing System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Windows.Forms.Design; + +namespace SA_LTT_UI.UserControls +{ + [ + Designer(typeof(TitleBoxDesigner)) + ] + public partial class TitleBox : UserControl + { + public TitleBox() + { + InitializeComponent(); + } + + [ + Category("Appearance"), + DesignerSerializationVisibility(DesignerSerializationVisibility.Content) + ] + public Label Title + { + get + { + return lb_Title; + } + } + + [ + Category("Appearance"), + DesignerSerializationVisibility(DesignerSerializationVisibility.Content) + ] + public Panel WorkingArea + { + get + { + return this.pnl_WorkingArea; + } + } + + private void TitleBox_Load(object sender, EventArgs e) + { + + } + } + + public class TitleBoxDesigner : ParentControlDesigner + { + public override void Initialize(System.ComponentModel.IComponent component) + { + base.Initialize(component); + if (this.Control is TitleBox) + { + this.EnableDesignMode(((TitleBox)this.Control).WorkingArea, "WorkingArea"); + } + } + } +} -- Gitblit v1.9.3