Пример #1
0
        /// <summary>
        /// 增加提示框
        /// </summary>
        /// <param name="alterText">提示内容</param>
        /// <param name="alertType">提示类型</param>
        private void addAlter(string alterText, CxFlatAlertBox.AlertType alertType)
        {
            CxFlatAlertBox alert = new CxFlatAlertBox();

            alert.Location = new Point(47, 50);
            alert.Name     = "alert";
            alert.Text     = alterText;
            alert.Size     = new Size(200, 34);
            alert.Type     = alertType;
            ManageGroup.Controls.Add(alert);
            alert.BringToFront();
            timer.Start();
        }
Пример #2
0
        /// <summary>
        /// 增加提示框
        /// </summary>
        /// <param name="alterText">提示内容</param>
        /// <param name="alertType">提示类型</param>
        private void addAlter(string alterText, CxFlatAlertBox.AlertType alertType)
        {
            CxFlatAlertBox alert = new CxFlatAlertBox();

            alert.Location = new Point(30, 196);
            alert.Name     = "alert";
            alert.Text     = alterText;
            alert.Size     = new Size(240, 34);
            alert.Type     = alertType;
            loginMainBox.Controls.Add(alert);
            alert.BringToFront();
            timer.Start();
        }
Пример #3
0
        private void addAlter(string alterText, CxFlatAlertBox.AlertType alertType)
        {
            CxFlatAlertBox alert = new CxFlatAlertBox();

            alert.Location = new Point(278, 167);
            alert.Name     = "alert";
            alert.Text     = alterText;
            alert.Size     = new Size(169, 161);
            alert.Type     = alertType;
            cxFlatGroupBox1.Controls.Add(alert);
            alert.BringToFront();
            timer1.Start();
        }
Пример #4
0
        private void addAlter(string alterText, CxFlatAlertBox.AlertType alertType)
        {
            CxFlatAlertBox alert = new CxFlatAlertBox();

            alert.Location = new Point(148, 119);
            alert.Name     = "alert";
            alert.Text     = alterText;
            alert.Size     = new Size(108, 34);
            alert.Type     = alertType;
            downclassGroupBox1.Controls.Add(alert);
            alert.BringToFront();
            timer1.Start();
        }
Пример #5
0
        /// <summary>
        /// 增加提示框
        /// </summary>
        /// <param name="alterText">提示内容</param>
        /// <param name="alertType">提示类型</param>
        private void AddAlter(string alterText, CxFlatAlertBox.AlertType alertType)
        {
            CxFlatAlertBox alert = new CxFlatAlertBox
            {
                Location = new System.Drawing.Point(30, 196),
                Name     = "alert",
                Text     = alterText,
                Size     = new Size(240, 34),
                Type     = alertType
            };

            this.Controls.Add(alert);
            alert.BringToFront();
        }