Example #1
0
 /// <summary>
 /// 删除特定字符
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DeleteCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (DeleteCheckBox.Checked)
     {
         DeleteTextBox.Show();
     }
     else
     {
         DeleteTextBox.Hide();
         DeleteTextBox.Text = "";
     }
 }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //this.WindowState = FormWindowState.Maximized;    //最大化窗体
            SplitBox.Hide();
            var selectDic = new Dictionary <int, string>();

            selectDic.Add(0, "换行符");
            selectDic.Add(1, "空格");
            selectDic.Add(2, "输入字符");
            BindingSource bindingSource = new BindingSource();

            bindingSource.DataSource    = selectDic;
            SplitComboBox.DataSource    = bindingSource;
            SplitComboBox.ValueMember   = "Key";
            SplitComboBox.DisplayMember = "Value";
            BeforeTextBox.Hide();
            BackTextBox.Hide();
            DeleteTextBox.Hide();
            RegexTextBox.Hide();
        }
Example #3
0
 private void DeleteTextBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     DeleteTextBox.Clear();
 }