static public Decible Create(double value) { Decible db = new Decible(); db.Input = value; return(db); }
static public Decible Create(string value) { Decible db = new Decible(); db.SetText(value); return(db); }
public static void RenderSlider(Color back, Graphics g, Decible decible, System.Windows.Forms.Control control) { StringFormat 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 ); }
static public void RenderSlider(Color back, Graphics g, Decible decible, System.Windows.Forms.Control control) { StringFormat 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 ); }
public static Decible Create(double value) { Decible db = new Decible(); db.Input = value; return db; }
public static Decible Create(string value) { Decible db = new Decible(); db.SetText( value ); return db; }