#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion
using System.Windows.Forms;
using Danal.Layout;
using smo = Microsoft.SqlServer.Management.Smo;
using broker = Microsoft.SqlServer.Management.Smo.Broker;
namespace MySBManager4
{
    [UseAutoLayout]
    class Dialog : UserControl
    {
        public Dialog()
        {
            LayoutItem.DoLayout(this);
        }
        [LayoutItem(1, Text="My Button")]
        Button test;
    }
    class Program
    {
        static void Main(string[] args)
        {
            Form form = UseAutoLayoutAttribute.HostInForm(new Dialog());
            form.Text = "My form";
            Application.Run(form);
        }
    }
}
