-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cs
46 lines (37 loc) · 1.46 KB
/
Main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using BarcodeGenerator.LabelTypes;
using DevExpress.XtraReports.Parameters;
using DevExpress.XtraReports.UI;
using System;
namespace BarcodeGenerator
{
public partial class Main : DevExpress.XtraEditors.XtraForm
{
public Main()
{
InitializeComponent();
}
private void btnPreview_Click(object sender, EventArgs e)
{
TwoByOne one = new TwoByOne();
one.Parameters["ShopName"].Value = txtShopName.Text;
one.Parameters["ItemName"].Value = txtItemName.Text;
one.Parameters["ItemPrice"].Value = txtItemPrice.Text;
one.Parameters["BarcodeValue"].Value = txtBarcodeValue.Text;
one.Parameters["ItemNameIsBold"].Value = chkItemNameBold.Checked;
one.Parameters["ItemPriceIsBold"].Value = chkItemPriceBold.Checked;
one.Parameters["ShopNameIsBold"].Value = chkShopNameBold.Checked;
one.Parameters["ItemNameFontSize"].Value = numItemNameFont.Value;
one.Parameters["ItemPriceFontSize"].Value = numItemPriceFont.Value;
one.Parameters["ShopNameFontSize"].Value = numShopNameFont.Value;
one.RequestParameters = false;
one.ShowPreview();
}
private void Main_Load(object sender, EventArgs e)
{
}
private void txtBarcodeValue_TextChanged(object sender, EventArgs e)
{
txtItemCode.Text = txtBarcodeValue.Text;
}
}
}