public ProgressBar(Renderer2D r2d) : base(r2d) { orientation = BarOrientation.HORIZONTAL; fillTexSource = Rectangle.Empty; filePath = ""; }
public GraduationBar() { this.marge = 0; this.scale = 1; InitializeComponent(); if (this.Size.Width > this.Size.Height) this.Orientation = BarOrientation.horizontal; else Orientation = BarOrientation.vertical; }
private void GraduationBar_SizeChanged(object sender, EventArgs e) { if (this.Size.Width > this.Size.Height) { this.Orientation = BarOrientation.horizontal; } else { Orientation = BarOrientation.vertical; } this.Refresh(); }
/// <summary> /// コンストラクター /// </summary> /// <param name="width"></param> /// <param name="length"></param> /// <param name="ori"></param> /// <param name="maxValue"></param> public Bar(int width, int length, BarOrientation ori, float maxValue) { if (width < 0 || length < 0) { throw new ArgumentException ("Bar size is invalie"); } this.width = width; this.length = length; this.orientation = ori; this.bgColor = Color.Black; this.fgColor = Color.Green; this.backgroundTexture = null; this.foregroundTexture = null; this.maxValue = maxValue; this.currentValue = maxValue; this.offset = new Vector2 (0, 0); }
public GraduationBar() { this.marge = 0; this.scale = 1; InitializeComponent(); if (this.Size.Width > this.Size.Height) { this.Orientation = BarOrientation.horizontal; } else { Orientation = BarOrientation.vertical; } }
private void GraduationBar_SizeChanged(object sender, EventArgs e) { if (this.Size.Width > this.Size.Height) this.Orientation = BarOrientation.horizontal; else Orientation = BarOrientation.vertical; this.Refresh(); }