using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Tanshu.Accounts.Entities; using Tanshu.Accounts.Contracts; using Tanshu.Accounts.SqlDAO; namespace Tanshu.Accounts.PointOfSale { public partial class BillSettleForm : Form { private SettleOption settleOption = SettleOption.Unsettled; public BillSettleForm() { InitializeComponent(); } private void btnCash_Click(object sender, EventArgs e) { settleOption = SettleOption.Cash; this.Close(); } private void btnCreditCard_Click(object sender, EventArgs e) { settleOption = SettleOption.CreditCard; this.Close(); } private void btnNC_Click(object sender, EventArgs e) { settleOption = SettleOption.NoCharge; this.Close(); } private void btnCancel_Click(object sender, EventArgs e) { settleOption = SettleOption.Unsettled; this.Close(); } private void btnStaff_Click(object sender, EventArgs e) { settleOption = SettleOption.Staff; this.Close(); } private void btnBillToCompany_Click(object sender, EventArgs e) { settleOption = SettleOption.BillToCompany; this.Close(); } public SettleOption optionChosen { get { return settleOption; } } } }