Ejemplo n.º 1
0
 private void cmbType_Leave(object sender, EventArgs e)
 {
     if (cmbType.SelectedIndex == 1)
     {
         CustomerMaster frm = new CustomerMaster();
         frm.ShowDialog();
         cmbType.SelectedIndex = 0;
     }
     else if (cmbType.SelectedIndex == 0)
     {
         txtName.Visible         = false;
         cmbCustomerName.Visible = true;
         dtpSalesDate.Enabled    = true;
         //txtName.Enabled = true;
         //txtContact.Enabled = true;
         //txtAddress.Enabled = true;
         txtInvoiceNo.Enabled = true;
         cmbIsCash.Enabled    = false;
     }
 }
        private void customerMasterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CustomerMaster frm = new CustomerMaster();

            frm.ShowDialog();
        }