private void Profile_label_Click(object sender, EventArgs e) { UserPage userPage = ServiceManager.Instance.Container.Resolve <UserPage>(); CurrentUser += userPage.GetUser; CurrentUser.Invoke(this, user); userPage.ShowDialog(); }