Exemple #1
0
        public MainForm()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;

            GetRadiusEventHandler GR = new GetRadiusEventHandler(FormCommon.GetRadius);

            GR(40);

            FormCommon FC = new FormCommon();

            this.Region = FC.Round(this.Width, this.Height);
        }
        public LoginForm()
        {
            InitializeComponent();

            // 通过委托传递圆角弧度
            GetRadiusEventHandler getRadiusEventHandler = new GetRadiusEventHandler(FormCommon.GetRadius);

            getRadiusEventHandler(40);
            //base.Refresh();
            FormCommon formCommon = new FormCommon();

            this.Region = formCommon.Round(this.Width, this.Height);
        }