コード例 #1
0
ファイル: MainForm.cs プロジェクト: fanandli/simply_teamview
        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);
        }
コード例 #2
0
ファイル: LoginForm.cs プロジェクト: fanandli/simply_teamview
        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);
        }