public IstoricConversatie(Utilizator pchat)
        {
            u = pchat;
            InitializeComponent();

            //   bool temp = false;
            //  SqlConnection con = new SqlConnection("server=arun\\SQLEXPRESS;database=pan;Trusted_Connection=True");
            //   con.Open();
            //  SqlCommand cmd = new SqlCommand("select * from Table2 where nume1='" + textBox1.Text.Trim() + "'", con);
            //  SqlDataReader dr = cmd.ExecuteReader();
            //while (dr.Read())
            //{
            //    textBox2.Text = dr.GetString(1);
            //    textBox3.Text = dr.GetString(2);
            //    temp = true;
            //}
            //  if (temp == false)
            //   MessageBox.Show("not found");
            //    con.Close();
        }
示例#2
0
 public PrivateChat(Utilizator pchat)
 {
     InitializeComponent();
     pChat = pchat;
 }