using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MSGer.tk { public partial class PartnerInformation : ThemedForms { public PartnerInformation(UserInfo uinfo) { InitializeComponent(); nameTextBox.BackColor = this.BackColor; messageTextBox.BackColor = this.BackColor; //string tmp = Path.GetTempPath(); //string pictlocation = tmp + "\\MSGer.tk\\pictures\\" + uinfo.UserID + ".png"; /*if (File.Exists(pictlocation)) pictureBox1.ImageLocation = pictlocation; else pictureBox1.ImageLocation = "noimage.png";*/ pictureBox1.Image = uinfo.Image; //2015.05.30. nameTextBox.Text = uinfo.Name; if (uinfo.State == 1) statusLabel.Text = Language.Translate(Language.StringID.Menu_File_Status_Online); else if (uinfo.State == 2) statusLabel.Text = Language.Translate(Language.StringID.Menu_File_Status_Busy); else if (uinfo.State == 3) statusLabel.Text = Language.Translate(Language.StringID.Menu_File_Status_Away); else statusLabel.Text = ""; messageTextBox.Text = uinfo.Message; userName1.Text = Language.Translate(Language.StringID.UserName) + ":"; userName2.Text = uinfo.UserName; userID1.Text = Language.Translate(Language.StringID.UserID); userID2.Text = uinfo.UserID.ToString(); email1.Text = "E-mail:"; email2.Text = uinfo.Email; } } }