Пример #1
0
 public Main(User u)
 {
     user = u;
     InitializeComponent();
     label5.Text = user.UserName;
     userName = user.UserName;
     UserInfo userinfo = new UserInfo(user);
     userinfo.TopLevel = false;
     userinfo.FormBorderStyle = FormBorderStyle.None;
     Info.Controls.Add(userinfo);
     userinfo.Show();
 }
Пример #2
0
 private void UserInfo_ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     UserInfo userinfo = new UserInfo(user);
     userinfo.TopLevel = false;
     userinfo.FormBorderStyle = FormBorderStyle.None;
     Info.Controls.Clear();
     Info.Controls.Add(userinfo);
     userinfo.Show();
 }