예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
        private void PersonalSettings_Click(object sender, RoutedEventArgs e)
        {
            var s1 = new MyProfileWindow(User);

            s1.ShowDialog();
        }
예제 #4
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var myProfile = new MyProfileWindow(meUser);

            myProfile.Show();
        }