Пример #1
0
        static public Decible Create(double value)
        {
            Decible db = new Decible();

            db.Input = value;
            return(db);
        }
Пример #2
0
        static public Decible Create(string value)
        {
            Decible db = new Decible();

            db.SetText(value);
            return(db);
        }
Пример #3
0
 static public void RenderSlider(Graphics g, Widget widget, Color back, Decible decible, System.Windows.Forms.Control control)
 {
     using (var format = new StringFormat())
     {
         format.LineAlignment = StringAlignment.Center;
         format.Alignment     = StringAlignment.Center;
         using (Pen p = new Pen(control.ForeColor, 1)) g.DrawRectangle(p, 0, 0, control.Width - 1, control.Height - 1);
         using (Brush b = new SolidBrush(back)) g.FillRectangle(b, 1, 1, (int)((control.Width - 2) * decible.Percent), control.Height - 2);
         using (Brush b = new SolidBrush(control.ForeColor)) g.DrawString(decible.ToString(), control.Font, b, control.ClientRectangle, format);
     }
 }
Пример #4
0
 public static Decible Create(string value)
 {
     Decible db = new Decible();
     db.SetText( value );
     return db;
 }
Пример #5
0
 public static Decible Create(double value)
 {
     Decible db = new Decible();
     db.Input = value;
     return db;
 }