示例#1
0
 private void cmdQTH_Click(object sender, EventArgs e)
 {
     if (txtDXCC.Text == _cfg.MyEntity)
     {
         string sA = "";
         if (3 <= txtCall.Text.Length)
         {
             sA = txtCall.Text.Substring(2, 1);
         }
         if (Regex.IsMatch(txtCall.Text, "^7[K-N]"))
         {
             sA = "1";
         }
         if (txtPrefix2.Text != "")
         {
             sA = txtPrefix2.Text;
         }
         frmSearchCityCode f = new frmSearchCityCode(txtQTH.Text, sA, _dcCityCode, txtCityCode, txtQTH);
         f.ShowDialog();
     }
     else
     {
         string sPrefix = txtCall.Text;
         if (1 < txtPrefix1.Text.Length)
         {
             sPrefix = txtPrefix1.Text;
         }
         if (1 < txtPrefix2.Text.Length)
         {
             sPrefix = txtPrefix2.Text;
         }
         frmSearchDXCC f = new frmSearchDXCC(sPrefix, _dcDXCC, txtDXCC, txtQTH);
         f.ShowDialog();
     }
 }
示例#2
0
        private void cmdDxcc_Click(object sender, EventArgs e)
        {
            string sPrefix = txtCall.Text;

            if (1 < txtPrefix1.Text.Length)
            {
                sPrefix = txtPrefix1.Text;
            }
            if (1 < txtPrefix2.Text.Length)
            {
                sPrefix = txtPrefix2.Text;
            }

            frmSearchDXCC f = new frmSearchDXCC(sPrefix, _dcDXCC, txtDXCC, txtQTH);

            f.ShowDialog();
        }