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();
        }
    }
}