Пример #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 txtQTH_My_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode != Keys.Enter)
     {
         return;
     }
     else if (e.Shift && e.KeyCode == Keys.Enter)
     {
         RegistQSO();
     }
     else if (Regex.IsMatch(txtQTH_My.Text, @"^\p{IsHiragana}+$"))
     {
         string sA = "";
         if (3 <= _cfg.MyCall.Length)
         {
             sA = _cfg.MyCall.Substring(2, 1);
         }
         if (Regex.IsMatch(_cfg.MyCall, "^7[K-N]"))
         {
             sA = "1";
         }
         if (txtPrefix_My.Text != "")
         {
             sA = txtPrefix_My.Text;
         }
         frmSearchCityCode f = new frmSearchCityCode(txtQTH_My.Text, sA, _dcCityCode, txtCityCode_My, txtQTH_My);
         f.ShowDialog();
     }
 }
Пример #3
0
 private void txtQTH_h_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode != Keys.Enter)
     {
         return;
     }
     else if (e.Shift && e.KeyCode == Keys.Enter)
     {
         RegistQSO();
     }
     else if (txtDXCC.Text == _cfg.MyEntity && Regex.IsMatch(txtQTH_h.Text, @"^\p{IsHiragana}+$"))
     {
         string sA = "";
         if (3 <= txtCall.Text.Length)
         {
             sA = txtCall.Text.Substring(2, 1);
         }
         if (Regex.IsMatch(txtCall.Text, "^7[K-N]"))
         {
             sA = "1";
         }
         frmSearchCityCode f = new frmSearchCityCode(txtQTH_h.Text, sA, _dcCityCode, null, txtQTH_h);
         f.ShowDialog();
     }
 }
Пример #4
0
        private void cmdQTH_h_Click(object sender, EventArgs e)
        {
            string sA = "";

            if (3 <= txtCall.Text.Length)
            {
                sA = txtCall.Text.Substring(2, 1);
            }
            if (Regex.IsMatch(txtCall.Text, "^7[K-N]"))
            {
                sA = "1";
            }
            frmSearchCityCode f = new frmSearchCityCode(txtQTH_h.Text, sA, _dcCityCode, null, txtQTH_h);

            f.ShowDialog();
        }
Пример #5
0
        private void cmdQTH_My_Click(object sender, EventArgs e)
        {
            string sA = "";

            if (3 <= _cfg.MyCall.Length)
            {
                sA = _cfg.MyCall.Substring(2, 1);
            }
            if (Regex.IsMatch(_cfg.MyCall, "^7[K-N]"))
            {
                sA = "1";
            }
            if (txtPrefix_My.Text != "")
            {
                sA = txtPrefix_My.Text;
            }
            frmSearchCityCode f = new frmSearchCityCode(txtQTH_My.Text, sA, _dcJCCG, txtDcode, txtQTH_My);

            f.ShowDialog();
        }
Пример #6
0
        private void cmdQTH_My_Click(object sender, EventArgs e)
        {
            frmSearchCityCode f = new frmSearchCityCode(txtQTH_My.Text, txtPrefix_My.Text, _dcCityCode, txtCityCode_My, txtQTH_My);

            f.ShowDialog();
        }