Exemple #1
0
        public FlatAlertBox()
        {
            FlatAlertBox.__ENCAddToList(this);
            this.State        = MouseState.None;
            this.SuccessColor = color.FromArgb(60, 85, 79);
            this.SuccessText  = color.FromArgb(35, 169, 110);
            this.ErrorColor   = color.FromArgb(87, 71, 71);
            this.ErrorText    = color.FromArgb(254, 142, 122);
            this.InfoColor    = color.FromArgb(70, 91, 94);
            this.InfoText     = color.FromArgb(97, 185, 186);
            this.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
            this.DoubleBuffered = true;
            this.BackColor      = color.FromArgb(60, 70, 73);
            Size size = new Size(576, 42);

            this.Size = size;
            point location = new point(10, 61);

            this.Location = location;
            this.Font     = new Font("Segoe UI", 10f);
            this.Cursor   = Cursors.Hand;
        }
Exemple #2
0
 public void ShowControl(FlatAlertBox._Kind Kind, string Str, int Interval)
 {
     this.K = Kind;
     this.Text = Str;
     this.Visible = true;
     this.T = new System.Windows.Forms.Timer();
     this.T.Interval = Interval;
     this.T.Enabled = true;
 }