コード例 #1
0
        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;
        }
コード例 #2
0
 public ProfileViewingScreen(PasswordManagingPanel parent)
 {
     InitializeComponent();
     ParentPanel = parent;
 }