コード例 #1
0
 private void MTBX_ZipCode_TextChanged(object sender, EventArgs e)
 {
     if (MTBX_ZipCode.MaskCompleted)
     {
         CBB_StoreSelector.SelectedItem = Stores.FindByZipCode(MTBX_ZipCode.Text);
     }
 }
コード例 #2
0
        private bool Validate_ZipCode(ref string message)
        {
            Store foundedStore = null;

            if (MTBX_ZipCode.Text == "")
            {
                message = "Zip code absent";
            }
            if (MTBX_ZipCode.MaskCompleted)
            {
                foundedStore = Stores.FindByZipCode(MTBX_ZipCode.Text);
                CBB_StoreSelector.SelectedItem = foundedStore;
                message = "Aucune surcusale trouvée";
            }
            return(foundedStore != null && MTBX_ZipCode.MaskCompleted);
        }