private void TestBtn_Click(object sender, RoutedEventArgs e)
        {
            bool error = false;

            List <string> listtmm = new List <string>();

            for (int i = 0; i < inputCharactersTB.Text.Length; i++)
            {
                listtmm.Add(Convert.ToString(inputCharactersTB.Text[i]));
            }

            //  string[] inputCh = StaticAnyWhere.prepareStringArr(inputCharactersTB.Text);
            Queue <string> listCH = new Queue <string>();

            CanvasGrLine.Children.Clear();


            for (int i = 0; i < listtmm.Count; i++)
            {
                if ((automatonGraph.InputCharacters.Contains(listtmm[i]) || (inputCharactersTB.Text == "")))
                {
                    listCH.Enqueue(listtmm[i]);
                }
                else
                {
                    MessageBox.Show("Ошибка при вводу входных символов");
                    error = true;
                    break;
                }
            }
            List <DFAGraphNode <string> > view = new List <DFAGraphNode <string> >();

            if (!error)
            {
                bool flag = automatonGraph.CheckingTheValidityChain(listCH, ref view);

                if (flag)
                {
                    Node noded = sender as Node;

                    CanvasGrLine.Width = view.Count * 150;


                    for (int i = 0; i < view.Count; i++)
                    {
                        Node node = new Node(view[i]);
                        SetPoint(node, i * 150, 0);
                        //   automatonGraph.GetNodeByIndex(count).NodeG = node;
                        node.ItIsOnlyNode = true;
                        CanvasGrLine.Children.Add(node);
                    }
                }
                else
                {
                }


                MessageBox.Show(flag + "");
            }
        }