コード例 #1
0
        private void ResultaterForSøgning_datagrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            PVP.Username_ProfilPage_Label.Content          = selecteduser.FK_profile_name;
            PVP.FornavnData_ProfilPage_label.Content       = selecteduser.First_name;
            PVP.EfternavnData_ProfilPage_label.Content     = selecteduser.Last_name;
            PVP.FødselsdagData_ProfilPage_label.Content    = selecteduser.Date;
            PVP.KønData_ProfilPage_label.Content           = selecteduser.Gender;
            PVP.StatusData_ProfilPage_label.Content        = selecteduser.Status;
            PVP.SøgerData_ProfilPage_label.Content         = selecteduser.Seeking;
            PVP.InteresseretIData_ProfilPage_label.Content = selecteduser.SexualOrientation;
            PVP.HøjdeData_ProfilPage_label.Content         = selecteduser.Height;
            PVP.VægtData_ProfilPage_label.Content          = selecteduser.Weight;
            PVP.ØjenfarveData_ProfilPage_label.Content     = selecteduser.Eyecolor;
            PVP.HårfarveData_ProfilPage_label.Content      = selecteduser.Haircolor;
            PVP.BørnData_ProfilPage_label.Content          = selecteduser.Children;
            PVP.KropsTypeData_ProfilPage_label.Content     = selecteduser.Body_Type;
            PVP.PostNummerData_ProfilPage_label.Content    = selecteduser.Postcode;
            PVP.BeskrivDigSelv_ProfilPage_TextBox.Text     = selecteduser.About_yourself;
            PVP.SynesGodtOm_Label.Content = like.likeCounter(selecteduser.FK_profile_name);

            LoadPicture();
            PVP.fixpic(selecteduser.FK_profile_name);


            (Application.Current.MainWindow.FindName("Frame") as Frame).Content = PVP;
        }
コード例 #2
0
ファイル: ProfilPage.xaml.cs プロジェクト: SDKR/Dating-App
        public ProfilPage()
        {
            InitializeComponent();
            LoadPicture();

            OmMig_ProfilPage_Label.Content    = "Om " + Dating_App.Model.User.CurrentUser.Profile_name;
            Username_ProfilPage_Label.Content = Dating_App.Model.User.CurrentUser.Profile_name;

            FornavnData_ProfilPage_label.Content       = Dating_App.Model.User.CurrentUser.First_name;
            EfternavnData_ProfilPage_label.Content     = Dating_App.Model.User.CurrentUser.Last_name;
            FødselsdagData_ProfilPage_label.Content    = Dating_App.Model.User.CurrentUser.Date;
            KønData_ProfilPage_label.Content           = Dating_App.Model.User.CurrentUser.Gender;
            StatusData_ProfilPage_label.Content        = Dating_App.Model.User.CurrentUser.Status;
            SøgerData_ProfilPage_label.Content         = Dating_App.Model.User.CurrentUser.Seeking;
            InteresseretIData_ProfilPage_label.Content = Dating_App.Model.User.CurrentUser.SexualOrientation;
            HøjdeData_ProfilPage_label.Content         = Dating_App.Model.User.CurrentUser.Height;
            VægtData_ProfilPage_label.Content          = Dating_App.Model.User.CurrentUser.Weight;
            ØjenfarveData_ProfilPage_label.Content     = Dating_App.Model.User.CurrentUser.Eyecolor;
            HårfarveData_ProfilPage_label.Content      = Dating_App.Model.User.CurrentUser.Haircolor;
            BørnData_ProfilPage_label.Content          = Dating_App.Model.User.CurrentUser.Children;
            KropsTypeData_ProfilPage_label.Content     = Dating_App.Model.User.CurrentUser.Body_Type;
            PostNummerData_ProfilPage_label.Content    = Dating_App.Model.User.CurrentUser.Postcode;
            BeskrivDigSelv_ProfilPage_TextBox.Text     = Dating_App.Model.User.CurrentUser.About_yourself;

            SynesGodtOm_Label.Content = like.likeCounter(Dating_App.Model.User.CurrentUser.Profile_name.ToString());
        }
コード例 #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     like.LikeSomeone(Username_ProfilPage_Label.Content.ToString(), Dating_App.Model.User.CurrentUser.Profile_name);
     SynesGodtOm_Label.Content = like.likeCounter(Username_ProfilPage_Label.Content.ToString());
 }