private void button1_Click(object sender, RoutedEventArgs e)
        {
            string fileName = Convert.ToString(textBox1.Text);
            string input = Convert.ToString(textBox2.Text);
            string action = Convert.ToString(textBox3.Text);
            string output = Convert.ToString(textBox4.Text);
            int durab = Convert.ToInt32(textBox6.Text);
            int inAmout = Convert.ToInt32(textBox7.Text);
            int ouAmout = Convert.ToInt32(textBox8.Text);

            fileName = fileName + ".txt";

            ConfigCreator cc = new ConfigCreator();
            cc.config(fileName, input, output, durab, action, inAmout, ouAmout);
        }
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            string fileName = Convert.ToString(textBox1.Text);
            string input    = Convert.ToString(textBox2.Text);
            string action   = Convert.ToString(textBox3.Text);
            string output   = Convert.ToString(textBox4.Text);
            int    durab    = Convert.ToInt32(textBox6.Text);
            int    inAmout  = Convert.ToInt32(textBox7.Text);
            int    ouAmout  = Convert.ToInt32(textBox8.Text);

            fileName = fileName + ".txt";

            ConfigCreator cc = new ConfigCreator();

            cc.config(fileName, input, output, durab, action, inAmout, ouAmout);
        }