47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AyaNova.PlugIn.QBOI
|
|
{
|
|
public partial class SetQBImportCustomerTaxCode : Form
|
|
{
|
|
public SetQBImportCustomerTaxCode()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void SetQBImportCustomerTaxCode_Load(object sender, EventArgs e)
|
|
{
|
|
this.btnCancel.Image = Util.AyaImage("Cancel24");
|
|
this.btnOK.Image = Util.AyaImage("OK24");
|
|
this.Icon = Util.AyaIcon("Client16icon");
|
|
//Fill combo's and select defaults
|
|
|
|
cbTaxCode.BindingContext = new BindingContext();
|
|
cbTaxCode.DisplayMember = "FullName";
|
|
cbTaxCode.ValueMember = "ID";
|
|
cbTaxCode.DataSource = Util.QBTaxCodes;
|
|
if (!string.IsNullOrEmpty(Util.QDat.CustomerTaxCodeDefault))
|
|
cbTaxCode.SelectedValue = Util.QDat.CustomerTaxCodeDefault;
|
|
|
|
}
|
|
|
|
private void btnOK_Click(object sender, EventArgs e)
|
|
{
|
|
Util.QDat.CustomerTaxCodeDefault = cbTaxCode.SelectedValue.ToString();
|
|
Util.SaveQBIData();
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
} |