private void Edit_data(string text)
        {
            string[] number = text.Split(';');

            Add_TextBox(1, 2 * (number.Length - 1));

            for (int i = 0; i <= 2 * (number.Length - 1) - 2; i = i + 2)
            {
                string[] xy = number[i - i / 2].Split('/');
                for (int j = 1; j <= xy.Length; j++)
                {
                    object  item      = Canvas_Panel.FindName("txtBox" + (i + j).ToString());
                    TextBox edit_text = (TextBox)item;

                    edit_text.Text = xy[j - 1];
                }
            }
        }
        private void Add_data(int count)
        {
            gr_table.Name  = Name_box.Text;
            gr_table.index = type_gr.Text;

            for (int i = 1; i <= 2 * count; i++)
            {
                object  item = Canvas_Panel.FindName("txtBox" + i.ToString());
                TextBox text = (TextBox)item;
                if (i % 2 == 0)
                {
                    gr_table.xy += text.Text + ";";
                }
                else
                {
                    gr_table.xy += text.Text + "/";
                }
            }
        }
        private void Add_Click(object sender, RoutedEventArgs e)
        {
            var value = Convert.ToInt32(numericUpDown.Value);

            if (count_txtbox > value)
            {
                for (int i = 2 * Convert.ToInt32(numericUpDown.Value) + 1; i <= 2 * count_txtbox; i++)
                {
                    object  item = Canvas_Panel.FindName("txtBox" + i.ToString());
                    TextBox text = (TextBox)item;
                    Canvas_Panel.Children.Remove(text);
                    Canvas_Panel.UnregisterName(text.Name);
                }
            }
            else if (count_txtbox < value)
            {
                Add_TextBox(2 * count_txtbox + 1, 2 * value);
            }
            count_txtbox = value;
        }