private void btnTRFX_Click(object sender, EventArgs e) { string ret = ""; char ch = (char)0x1A; string sch = ch.ToString(); ch = (char)0x0D; string returnch = ch.ToString(); ret += "TRFX:"; ret += sch; ret += EagleAPI.FullSpace(textBox1.Text, 2, " "); ret += sch; ret += EagleAPI.FullSpace(textBox2.Text, 2, " "); ret += sch; ret += EagleAPI.FullSpace(textBox3.Text, 1, " "); ret += sch; ret += EagleAPI.FullSpace(textBox4.Text, 1, " "); EagleAPI.EagleSendCmd(ret); }
public string combinestring() { string ret = ""; char ch = (char)0x1A; string sch = ch.ToString(); ch = (char)0x0D; string returnch = ch.ToString(); ret += "TRFU:"; ret += sch; ret += EagleAPI.FullSpace(textBox1.Text, 2, " "); ret += sch; ret += EagleAPI.FullSpace(textBox2.Text, 2, " "); ret += sch; ret += EagleAPI.FullSpace(textBox3.Text, 1, " "); ret += sch; ret += EagleAPI.FullSpace(textBox4.Text, 1, " "); ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox5.Text, 3, " "); ret += sch; ret += EagleAPI.FullSpace(textBox6.Text, 10, " "); ret += sch; ret += EagleAPI.FullSpace(textBox7.Text, 7, " "); ret += sch; ret += EagleAPI.FullSpace(textBox8.Text, 1, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox9.Text, 1, " "); ret += sch; ret += EagleAPI.FullSpace(textBox10.Text, 4, " "); ret += sch; ret += EagleAPI.FullSpace(textBox11.Text, 4, " "); ret += sch; ret += EagleAPI.FullSpace(textBox12.Text, 4, " "); ret += sch; ret += EagleAPI.FullSpace(textBox13.Text, 4, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox14.Text, 46, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox15.Text, 5, " "); ret += sch; ret += EagleAPI.FullSpace(textBox16.Text, 18, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox17.Text, 10, " "); ret += sch; ret += EagleAPI.FullSpace(textBox18.Text, 1, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox19.Text, 10, " "); ret += sch; ret += EagleAPI.FullSpace(textBox20.Text, 5, " "); ret += sch; ret += EagleAPI.FullSpace(textBox21.Text, 9, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox22.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox23.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox24.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox25.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox26.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox27.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox28.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox29.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox30.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox31.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox32.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox33.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox34.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox35.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox36.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox37.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox38.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox39.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox40.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox41.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox42.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox43.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox44.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox45.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox46.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox47.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox48.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox49.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox50.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox51.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox52.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox53.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox54.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox55.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox56.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox57.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox58.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox59.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox60.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox61.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox62.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox63.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox64.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox65.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox66.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox67.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox68.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox69.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox70.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox71.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox72.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox73.Text, 9, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox74.Text, 2, "_"); ret += sch; ret += EagleAPI.FullSpace(textBox75.Text, 9, "_"); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox76.Text, 2, " "); ret += sch; ret += EagleAPI.FullSpace(textBox77.Text, 12, " "); ret += sch; ret += EagleAPI.FullSpace(textBox78.Text, 22, " "); ret += sch; ret += returnch; ret += sch; ret += EagleAPI.FullSpace(textBox79.Text, 10, " "); ret += sch; ret += EagleAPI.FullSpace(textBox80.Text, 3, " "); ret += sch; return(ret); }