コード例 #1
0
        private void INV_btnAdd_Click(object sender, EventArgs e)
        {
            INV_AddState();
            Inv_ClearAll();

            Inv_EnableAll();

            InvColCustomerList.Focus();
            InvColCustomerList.ShowPopup();
        }
コード例 #2
0
        private void AddRowInCollection()
        {
            if (string.IsNullOrEmpty(InvColCustomerList.Text) || string.IsNullOrEmpty(invAmountReceived.Text))
            {
                MessageBox.Show("Error! Please Select a Customer & Enter the Amount!");
                return;
            }
            else
            {
                dataGridView3.Rows.Add("", InvColCustomerList.EditValue, InvColCustomerList.Text, textBox1.Text, textBox6.Text, invAmountReceived.Text);
                Collection_SumAll();

                InvColCustomerList.Text = "";
                textBox1.Text           = "";
                textBox6.Text           = "";
                invAmountReceived.Text  = "";
                textBox5.Text           = "";

                InvColCustomerList.Focus();
                InvColCustomerList.ShowPopup();
            }
        }