Ejemplo n.º 1
0
        private void dgw_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                DataGridViewRow dr = dgw.SelectedRows[0];



                this.Hide();
                Services_Billing frmtrans = new Services_Billing();
                if (lblSet.Text == "Service")
                {
                    frmtrans.Show();
                }



                frmtrans.txtID.Text          = dr.Cells[0].Value.ToString();
                frmtrans.txtAccountID.Text   = dr.Cells[1].Value.ToString();
                frmtrans.txtAccountName.Text = dr.Cells[4].Value.ToString();
                frmtrans.txtContactNo.Text   = dr.Cells[5].Value.ToString();
                frmtrans.GetSupplierBalance();
            }



            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        private void SearchRecordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Services_Billing ss = new Services_Billing();

            ss.Show();
            ss.lblUser.Text = lblUser.Text;
        }