public ProfileEditingScreen(PasswordManagingPanel parent) { InitializeComponent(); ParentPanel = parent; Profile profile = parent.passwordManagerListView.SelectedItem as Profile; PasswordList = ParentPanel.passwordManagerListView; CopyProfile = new Profile { Name = profile.Name, Mail = profile.Mail, Login = profile.Login, Password = profile.Password, Website = profile.Website, Notes = profile.Notes, CreationTime = profile.CreationTime, EditTime = profile.EditTime, Image = new Image { Source = profile.Image.Source?.Clone() } }; DataContext = this; }
public ProfileViewingScreen(PasswordManagingPanel parent) { InitializeComponent(); ParentPanel = parent; }