This commit is contained in:
2018-06-29 19:47:36 +00:00
commit be7f501333
3769 changed files with 1425961 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
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();
}
}
}