public ChoiceWindow(User me) { meUser = me; Timer timer = new Timer(); List <User> buddies = repos.GetSuitableBuddies(me); Buddies = buddies; if (buddies.Count() > 0) { InitializeComponent(); i = buddies.Count(); UserControl1(buddies[0]); curBuddy = buddies[0]; // сделать чтобы по нажатию next показывался след. юзер } else { MessageBox.Show("There are no suitable users for you. Please, change your interests or wait."); var myprof = new MyProfileWindow(me); myprof.Show(); } }
private void SelectingAvatar(List <string> avNames, int number) { MessageBox.Show("Are you sure?", "Choose avatar", MessageBoxButton.YesNoCancel); user2.AvatarAdress = avNames[number - 1]; var myprofile = new MyProfileWindow(user2); myprofile.Show(); }
private void PersonalSettings_Click(object sender, RoutedEventArgs e) { var s1 = new MyProfileWindow(User); s1.ShowDialog(); }
private void Button_Click(object sender, RoutedEventArgs e) { var myProfile = new MyProfileWindow(meUser); myProfile.Show(); }