Пример #1
0
        /// <summary>
        /// 文字選擇器
        /// 取得選擇的值(Jis格式)
        /// </summary>
        /// <returns>Jis代碼</returns>
        public static string GetTextBoxValue()
        {
            string  result  = string.Empty;
            JisForm jisForm = new JisForm();

            jisForm.ShowDialog();
            if (!string.IsNullOrEmpty(jisForm.value))
            {
                result = jisForm.value.Trim();
            }

            return(result);
        }
Пример #2
0
 /// <summary>
 /// JIS文字選擇
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnJisSelete_Click(object sender, EventArgs e)
 {
     lblJisCode.Text = JisForm.GetTextBoxValue();
 }