Esempio n. 1
0
        private void cboAeroRefEnv_SelectionChangeCommitted(object sender, EventArgs e)
        {
            ComboBox cbo       = sender as ComboBox;
            string   strRefEnv = cbo.SelectedItem.ToString();

            if (strRefEnv == "自定义")
            {
                if (DialogResult.OK != groParaBox.ShowDialog(this))
                {
                    Match mch = Regex.Match(TipShow.GetToolTip(cboAeroRefEnv), @"^[\u4e00-\u9fa5]+");
                    cboAeroRefEnv.Text = mch.Groups[0].Value;
                }
            }
        }