Esempio n. 1
0
        private void BtnSubDistrict_Click(object sender, EventArgs e)
        {
            SearchAddress frm = new SearchAddress();

            frm.Connnection = lsGdb.Gdb;
            frm.ShowDialog(this);
            TxtSubDistrict.Text = frm.SubDistrictNameT;
            TxtDistrict.Text    = frm.DistrictNameT;
            TxtProvName.Text    = frm.ProvNameT;
            TxtPostCode.Text    = frm.PostCode;
            lsProvCode          = frm.ProvCode;
            lsDistrictCode      = frm.DistrictCode;
            lsSubDistrictCode   = frm.SubDistrictCode;
            TxtPostCode.SelectAll();
            TxtPostCode.Focus();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SearchAddress frm = new SearchAddress();

            frm.Connnection = lsGdb.Gdb;
            frm.ShowDialog(this);
            if (ChkEnglishAddressNew.Checked == true)
            {
                TxtSubDistrictAddressNew.Text = frm.SubDistrictNameE;
                TxtDistrictAddressNew.Text    = frm.DistrictNameE;
                TxtProvNameAddressNew.Text    = frm.ProvNameE;
            }
            else
            {
                TxtSubDistrictAddressNew.Text = frm.SubDistrictNameT;
                TxtDistrictAddressNew.Text    = frm.DistrictNameT;
                TxtProvNameAddressNew.Text    = frm.ProvNameT;
            }

            TxtPostCodeAddressNew.Text = frm.PostCode;
            lsProvCodeAddress          = frm.ProvCode;
            lsDistrictCodeAddress      = frm.DistrictCode;
            lsSubDistrictCodeAddress   = frm.SubDistrictCode;
        }