using FastReport.Export;
using FastReport.Export.Dxf;
using FastReport.Utils;
using System.Windows.Forms;
namespace FastReport.Forms
{
///
/// Form for .
/// For internal use only.
///
public partial class DxfExportForm : BaseExportForm
{
#region Public Constructors
///
/// Initializes a new instance of the class.
///
public DxfExportForm()
{
InitializeComponent();
}
#endregion Public Constructors
#region Public Methods
///
public override void Init(ExportBase export)
{
base.Init(export);
DxfExport dxfExport = Export as DxfExport;
cbFillMode.SelectedIndex = dxfExport.FillMode == DxfFillMode.Border ? 0 : 1;
nuBarcodesGap.Value = (decimal)dxfExport.BarcodesGap;
}
///
public override void Localize()
{
base.Localize();
MyRes res = new MyRes("Export,Dxf");
Text = res.Get("");
this.lblDxfFillMode.Text = res.Get("FillMode");
this.cbFillMode.Items[0] = res.Get("FillModeBorder");
this.cbFillMode.Items[1] = res.Get("FillModeSolid");
this.label1.Text = res.Get("BarcodesGap");
}
#endregion Public Methods
#region Protected Methods
///
protected override void Done()
{
base.Done();
DxfExport dxfExport = Export as DxfExport;
dxfExport.FillMode = cbFillMode.SelectedIndex == 0 ? DxfFillMode.Border : DxfFillMode.Solid;
dxfExport.BarcodesGap = (float)nuBarcodesGap.Value;
}
#endregion Protected Methods
}
}