public frmEditQuoteForm()
        {
            InitializeComponent();

            //initialize new quotation item data table.
            editQuotationItemTable.Columns.Add("SequenceNumber", typeof(string));
            editQuotationItemTable.Columns.Add("ItemName", typeof(string));
            editQuotationItemTable.Columns.Add("Description", typeof(string));
            editQuotationItemTable.Columns.Add("Quantity", typeof(string));
            editQuotationItemTable.Columns.Add("UnitPrice", typeof(string));
            editQuotationItemTable.Columns.Add("Value", typeof(string));

            //initialize billing business object.
            editQuote = new EditQuote();

            //initialize client business object.
            client = new Client();
        }
        public frmNewInvoiceForm()
        {
            InitializeComponent();

            //initialize new invoice item data table.
            newInvoiceItemTable.Columns.Add("SequenceNumber", typeof(string));
            newInvoiceItemTable.Columns.Add("ItemName", typeof(string));
            newInvoiceItemTable.Columns.Add("ItemNo", typeof(int));
            newInvoiceItemTable.Columns.Add("Description", typeof(string));
            newInvoiceItemTable.Columns.Add("Quantity", typeof(string));
            newInvoiceItemTable.Columns.Add("UnitPrice", typeof(string));
            newInvoiceItemTable.Columns.Add("Value", typeof(string));

            //initialize billing business object.
            billing = new Billing();

            //initialize client business object.
            client = new Client();
        }
        private void frmSearchClientForm_Load(object sender, EventArgs e)
        {
            Client client = new Client();

            //Retrieve all clients by calling business method
            DataTable clientDt = client.GetAllClients();

            //Bind Item Categories to drop down
            cmbBoxClientName.SelectedIndex = -1;
            cmbBoxClientName.DataSource = clientDt;
            cmbBoxClientName.DisplayMember = "ClientContactName";
            cmbBoxClientName.ValueMember = "ClientId";
            cmbBoxClientName.Enabled = true;
        }