public friend_item(string message, string time, msgtype1 messagetype) { InitializeComponent(); userName.Text = message; userInformation.Text = time; if (messagetype.ToString() == "In") { //incoming message this.BackColor = Color.FromArgb(0, 164, 147); } //lets add the function which adjust the bubble height Setheight(); }
public friend_item(Form1 MainForm, string message, string time, msgtype1 messagetype, int userID, int itemType, string path) { InitializeComponent(); this.MainForm = MainForm; this.userID = userID; this.itemType = itemType; if (path != "") { this.pictureBox1.ImageLocation = "http://47.91.75.150/" + path; } userName.Text = message; userInformation.Text = time; if (messagetype.ToString() == "In") { //incoming message this.BackColor = Color.FromArgb(0, 164, 147); } //lets add the function which adjust the bubble height Setheight(); }