Skip to content

Commit

Permalink
fix alternate label in test app
Browse files Browse the repository at this point in the history
  • Loading branch information
barnhill committed Mar 1, 2017
1 parent 972ccd4 commit 8caa992
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BarcodeLibTest/TestApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ private void btnEncode_Click(object sender, EventArgs e)
}

b.IncludeLabel = this.chkGenerateLabel.Checked;

b.RotateFlipType = (RotateFlipType)Enum.Parse(typeof(RotateFlipType), this.cbRotateFlip.SelectedItem.ToString(), true);

if (!String.IsNullOrEmpty(this.textBox1.Text.Trim()))
b.AlternateLabel = this.textBox1.Text;
else
b.AlternateLabel = this.txtData.Text;

//label alignment and position
switch (this.cbLabelLocation.SelectedItem.ToString().Trim().ToUpper())
{
Expand Down

0 comments on commit 8caa992

Please sign in to comment.