private void Add() { List <string> st = new List <string>(); st = ch.ShowChat(u.GetUserCOmand(id)); listBox1.Items.Add(st[st.Count - 1]); }
private void Refreshi() { listBox1.Items.Clear(); List <string> st = new List <string>(); st = ch.ShowChat(m.GetCom(id)); for (int i = 0; i < st.Count(); i++) { listBox1.Items.Add(st[i]); } List <Tuple <int, string> > tmp1 = new List <Tuple <int, string> >(); tmp1 = m.GetAllEmployers(id); if (tmp1.Count != 0) { dataGridView2.RowCount = tmp1.Count(); for (int i = 0; i < tmp1.Count; i++) { dataGridView2[0, i].Value = tmp1[i].Item1; dataGridView2[1, i].Value = tmp1[i].Item2; } } listBox2.Items.Clear(); label2.Text = m.State(id); label3.Text = m.Deadline(id); var tmp = m.ShowEdits(id); listBox2.Items.Add(tmp[0]); }