예제 #1
0
        private void btnHelpBuild_Click(object sender, EventArgs e)
        {
            var builder = new HelpBuildParsePatternForm();

            if (builder.ShowDialog() == DialogResult.OK)
            {
                SelectedParsePattern = builder.SelectedParsePattern;
                txbParsePattern.Text = SelectedParsePattern.BuildWLStringSample();
            }
        }
예제 #2
0
        private void InitParsePattern()
        {
            SelectedParsePattern                 = new ParsePattern();
            SelectedParsePattern.ContainRank     = true;
            SelectedParsePattern.ContainCode     = true;
            SelectedParsePattern.CodeSplitString = ",";
            SelectedParsePattern.CodeSplitType   = BuildType.None;
            SelectedParsePattern.Sort            = new List <int> {
                1, 2, 3
            };
            SelectedParsePattern.SplitString = " ";


            ShowSample();
        }
예제 #3
0
 private void cbxFrom_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbxFrom.Text == ConstantString.SELF_DEFINING) //弹出自定义窗口
     {
         var          selfDefining = new SelfDefiningConverterForm();
         DialogResult show         = selfDefining.ShowDialog();
         if (show != DialogResult.OK)
         {
             cbxFrom.SelectedText = "";
             return;
         }
         else //选了自定义
         {
             fromUserSetPattern = selfDefining.SelectedParsePattern;
         }
     }
 }
 private void btnHelpBuild_Click(object sender, EventArgs e)
 {
     var builder = new HelpBuildParsePatternForm();
     if (builder.ShowDialog() == DialogResult.OK)
     {
         SelectedParsePattern = builder.SelectedParsePattern;
         txbParsePattern.Text = SelectedParsePattern.BuildWLStringSample();
     }
 }
예제 #5
0
 private void cbxTo_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbxTo.Text == ConstantString.SELF_DEFINING) //弹出自定义窗口
     {
         var selfDefining = new SelfDefiningConverterForm();
         selfDefining.IsImport = false;
         DialogResult show = selfDefining.ShowDialog();
         if (show != DialogResult.OK)
         {
             cbxFrom.SelectedText = "";
             return;
         }
         else //选了自定义
         {
             toUserSetPattern = selfDefining.SelectedParsePattern;
         }
     }
 }
        private void InitParsePattern()
        {
            SelectedParsePattern = new ParsePattern();
            SelectedParsePattern.ContainCipin = true;
            SelectedParsePattern.ContainPinyin = true;
            SelectedParsePattern.PinyinSplitString = ",";
            SelectedParsePattern.PinyinSplitType = BuildType.None;
            SelectedParsePattern.Sort = new List<int> {1, 2, 3};
            SelectedParsePattern.SplitString = " ";

            ShowSample();
        }