public Speak(Writer wr , Listener ls) { this.wr = wr ; this.ls = ls ; InitializeComponent(); if(!ls.checkSpeak())wr.sendString("i7"); // initialise liste String[] voices = ls.VoicesOut().Split('\0'); foreach(String a in voices){ if (a.Length != 0) { comboBox1.Items.Add(a); } } wr.sendString("e7"); String []Settings = ls.speakSettingsOut().Split('\0'); numericUpDown1.Value = int.Parse(Settings[2]); numericUpDown2.Value = int.Parse(Settings[1]); comboBox1.SelectedItem = Settings[1]; }
public user_controle(Socket s, Listener ls, Writer wr) { this.s = s; this.ls = ls; this.wr = wr; wr.sendString("05"); str.Add(57); str.Add(49); SetStyle(ControlStyles.DoubleBuffer,true); SetStyle(ControlStyles.UserPaint ,true); SetStyle(ControlStyles.AllPaintingInWmPaint,true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); UpdateStyles(); InitializeComponent(); timer1.Start(); }
public file_nav(Writer wr , Listener ls) { this.wr = wr; this.ls = ls; wr.sendString("08"); String list = ls.navSettingsOut(); list = list.TrimEnd('\0'); String[] drives = list.Split('\n'); InitializeComponent(); int i=0; while ( i < drives.Length && drives[i]!="<" ) { listBox1.Items.Add(drives[i]); i++; } i++; textBox1.Text = drives[i]; i += 2; listView1.Items.Add("..").Name="d"; while (i < drives.Length && drives[i] != "<") { if (drives[i].Length>1) listView1.Items.Add(drives[i]).Name = "d"; i++; } i += 2; while (i < drives.Length && drives[i] != "<") { if (drives[i].Length > 1) listView1.Items.Add(drives[i]).Name = "f"; i++; } }