Ejemplo n.º 1
0
 private void LoadRunner_Load(object sender, EventArgs e)
 {
     List<string> UserList = new List<string>();
     using (StreamReader sr = new StreamReader(Path.Combine(Application.StartupPath, "UserList.txt"), Encoding.UTF8))
     {
         string line = "";
         while ((line = sr.ReadLine()) != null)
         {
             UserList.Add(line.ToString().Trim());
         }
     }
     updateReceiveUi = new UpdateReceiveUI(SetReceiveText);
     updateStatUi = new UpdateStatUI(SetStateText);
 }
Ejemplo n.º 2
0
 public ChatClient()
 {
     InitializeComponent();
     updateReceiveUi = new UpdateReceiveUI(SetReceiveText);
     updateSendUi = new UpdateSendUI(SetSendText);
 }