public SharedFilesWindow(UsersContactProfile _SelectedUsersContactProfile, UsersContact _SelectedUsersContact, string _SelectedType) { InitializeComponent(); this.Title = "Shared Files (" + Settings.Application_Name + ")"; PopluteSharedfilesOn_list(); if (_SelectedType == "UsersContactProfile") { HeaderText.Content = _SelectedUsersContactProfile.UCP_first_name + " " + _SelectedUsersContactProfile.UCP_last_name; } else { HeaderText.Content = _SelectedUsersContact.UC_first_name + " " + _SelectedUsersContact.UC_last_name; } if (Settings.WebException_Security) { ServicePointManager.Expect100Continue = true; ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; } if (Settings.FlowDirection_RightToLeft) { this.FlowDirection = FlowDirection.RightToLeft; } ModeDark_Window(); }
public UserProfileinfo_Window(UsersContactProfile data, UsersContact datauserContact, string typedata) { InitializeComponent(); this.Title = "User Profile information (" + Settings.Application_Name + ")"; GetdataMyProfile(data, datauserContact, typedata); lbl_About_me.Content = LocalResources.label_Txt_About_me + "(" + Settings.Application_Name + ")"; if (Settings.WebException_Security) { ServicePointManager.Expect100Continue = true; ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; } if (Settings.FlowDirection_RightToLeft) { this.FlowDirection = FlowDirection.RightToLeft; } ModeDark_Window(); }
//Function Get data My Profile public void GetdataMyProfile(UsersContactProfile data, UsersContact datauserContact, string typedata) { try { if (typedata == "UsersContactProfile") { if (data != null) { if (data.UCP_username == "") { Lbl_ucp_Username.Content = LocalResources.label_Empty; } else { Lbl_ucp_Username.Content = data.UCP_first_name + " " + data.UCP_last_name + " ( " + data.UCP_username + " ) "; } if (data.UCP_email == "") { Lbl_ucp_Email.Content = LocalResources.label_Empty; } else { Lbl_ucp_Email.Content = data.UCP_email; } if (data.UCP_birthday == "") { Lbl_ucp_Birthday.Content = LocalResources.label_Empty; } else { Lbl_ucp_Birthday.Content = data.UCP_birthday; } if (data.UCP_phone_number == "") { Lbl_ucp_Phone_number.Content = LocalResources.label_Empty; } else { Lbl_ucp_Phone_number.Content = data.UCP_phone_number; } if (data.UCP_website == "") { Lbl_ucp_Website.Content = LocalResources.label_Empty; } else { Lbl_ucp_Website.Content = data.UCP_website; } if (data.UCP_address == "") { Lbl_ucp_Address.Content = LocalResources.label_Empty; } else { Lbl_ucp_Address.Content = data.UCP_address; } if (data.UCP_school == "") { Lbl_ucp_School.Content = LocalResources.label_Empty; } else { Lbl_ucp_School.Content = data.UCP_school; } if (UseLayoutRounding) { Lbl_ucp_Gender.Content = LocalResources.label_Empty; } else { Lbl_ucp_Gender.Content = data.UCP_gender; } if (data.UCP_facebook == "") { Lbl_ucp_Facebook.Content = LocalResources.label_Empty; } else { Lbl_ucp_Facebook.Content = data.UCP_facebook; } if (data.UCP_google == "") { Lbl_ucp_Google.Content = LocalResources.label_Empty; } else { Lbl_ucp_Google.Content = data.UCP_google; } if (data.UCP_twitter == "") { Lbl_ucp_Twitter.Content = LocalResources.label_Empty; } else { Lbl_ucp_Twitter.Content = data.UCP_twitter; } if (data.UCP_youtube == "") { Lbl_ucp_Youtube.Content = LocalResources.label_Empty; } else { Lbl_ucp_Youtube.Content = data.UCP_youtube; } if (data.UCP_linkedin == "") { Lbl_ucp_Linkedin.Content = LocalResources.label_Empty; } else { Lbl_ucp_Linkedin.Content = data.UCP_linkedin; } if (data.UCP_instagram == "") { Lbl_ucp_Instagram.Content = LocalResources.label_Empty; } else { Lbl_ucp_Instagram.Content = data.UCP_instagram; } if (data.UCP_vk == "") { Lbl_ucp_Vk.Content = LocalResources.label_Empty; } else { Lbl_ucp_Vk.Content = data.UCP_vk; } } } else { if (datauserContact != null) { if (datauserContact.UC_username == "") { Lbl_ucp_Username.Content = LocalResources.label_Empty; } else { Lbl_ucp_Username.Content = datauserContact.UC_first_name + " " + datauserContact.UC_last_name + " ( " + datauserContact.UC_username + " ) "; } if (datauserContact.UC_email == "") { Lbl_ucp_Email.Content = LocalResources.label_Empty; } else { Lbl_ucp_Email.Content = datauserContact.UC_email; } if (datauserContact.UC_birthday == "") { Lbl_ucp_Birthday.Content = LocalResources.label_Empty; } else { Lbl_ucp_Birthday.Content = datauserContact.UC_birthday; } if (datauserContact.UC_phone_number == "") { Lbl_ucp_Phone_number.Content = LocalResources.label_Empty; } else { Lbl_ucp_Phone_number.Content = datauserContact.UC_phone_number; } if (datauserContact.UC_website == "") { Lbl_ucp_Website.Content = LocalResources.label_Empty; } else { Lbl_ucp_Website.Content = datauserContact.UC_website; } if (datauserContact.UC_address == "") { Lbl_ucp_Address.Content = LocalResources.label_Empty; } else { Lbl_ucp_Address.Content = datauserContact.UC_address; } if (datauserContact.UC_school == "") { Lbl_ucp_School.Content = LocalResources.label_Empty; } else { Lbl_ucp_School.Content = datauserContact.UC_school; } if (UseLayoutRounding) { Lbl_ucp_Gender.Content = LocalResources.label_Empty; } else { Lbl_ucp_Gender.Content = datauserContact.UC_gender; } if (datauserContact.UC_facebook == "") { Lbl_ucp_Facebook.Content = LocalResources.label_Empty; } else { Lbl_ucp_Facebook.Content = datauserContact.UC_facebook; } if (datauserContact.UC_google == "") { Lbl_ucp_Google.Content = LocalResources.label_Empty; } else { Lbl_ucp_Google.Content = datauserContact.UC_google; } if (datauserContact.UC_twitter == "") { Lbl_ucp_Twitter.Content = LocalResources.label_Empty; } else { Lbl_ucp_Twitter.Content = datauserContact.UC_twitter; } if (datauserContact.UC_youtube == "") { Lbl_ucp_Youtube.Content = LocalResources.label_Empty; } else { Lbl_ucp_Youtube.Content = datauserContact.UC_youtube; } if (datauserContact.UC_linkedin == "") { Lbl_ucp_Linkedin.Content = LocalResources.label_Empty; } else { Lbl_ucp_Linkedin.Content = datauserContact.UC_linkedin; } if (datauserContact.UC_instagram == "") { Lbl_ucp_Instagram.Content = LocalResources.label_Empty; } else { Lbl_ucp_Instagram.Content = datauserContact.UC_instagram; } if (datauserContact.UC_vk == "") { Lbl_ucp_Vk.Content = LocalResources.label_Empty; } else { Lbl_ucp_Vk.Content = datauserContact.UC_vk; } } } } catch (Exception exception) { Console.WriteLine(exception); } }