Example #1
0
        private void CheckBtn_Click(object sender, EventArgs e)
        {
            string   input     = Input.Text;
            ToolsStr str       = new ToolsStr(input);
            string   outputstr = str.FixByWords(InputName.Text.Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries));

            output.Text = outputstr;
        }
Example #2
0
        private void CheckBtn_Click(object sender, EventArgs e)
        {
            string   input = Input.Text;
            ToolsStr str   = new ToolsStr(input);
            bool     check = str.CheckOn('А', 'Е', out int ACount, out int ECount);

            if (check)
            {
                output.Text = "удволетворяет условию\n A = " + ACount + "\n E = " + ECount;
            }
            else
            {
                output.Text = "не удволетворяет условию\n A = " + ACount + "\n E = " + ECount;
            }
        }
Example #3
0
        private void CheckBtn_Click(object sender, EventArgs e)
        {
            string   input = Input.Text;
            ToolsStr str   = new ToolsStr(input);
            bool     check = str.CheckOn('а', 'б');

            if (check)
            {
                output.Text = "удволетворяет условию";
            }
            else
            {
                output.Text = "не удволетворяет условию";
            }
        }