Esempio n. 1
0
        void btnEdit_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(pdaMeterPwd))
            {
                frmLockingPwd frmUnLock = new frmLockingPwd();
                frmUnLock.ShowDialog();

                if (string.IsNullOrEmpty(frmUnLock.ReturnValue1))
                {
                    return;
                }
                else
                {
                    pdaMeterPwd = frmUnLock.ReturnValue1;
                }

                frmUnLock.Dispose();
            }
            if (pdaMeterPwd != null)
            {
                txtVersion.Visible = true;
                btnUpdate.Visible  = true;
                lblVersion.Visible = false;
                txtVersion.Text    = lblVersion.Text;
                btnUpdate.Enabled  = true;
            }
        }
Esempio n. 2
0
        private void btnPDAAdd_OtherCharges_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(pdaMeterPwd))
            {
                frmLockingPwd frmUnLock = new frmLockingPwd();
                frmUnLock.ShowDialog();

                if (string.IsNullOrEmpty(frmUnLock.ReturnValue1))
                {
                    return;
                }
                else
                {
                    pdaMeterPwd = frmUnLock.ReturnValue1;
                }


                frmUnLock.Dispose();
            }



            AddPDAOtherChargesDetail();
        }