Esempio n. 1
0
        private void OnAddSignature(object obj)
        {
            var window      = new SignatureCaptureWindow();
            var dataContext = (SignatureCaptureWindowViewModel)window.DataContext;

            dataContext.OnSignatureCaptured = signature =>
            {
                Signature = signature;
            };
            window.ShowDialog();
        }
Esempio n. 2
0
        private void OnManageSignatures(object obj)
        {
            var window = new SignatureCaptureWindow();
            SignatureCaptureWindowViewModel dataContext = (SignatureCaptureWindowViewModel)window.DataContext;

            dataContext.SignatureImage = SelectedUser.Image;

            dataContext.OnSignatureCaptured = signature =>
            {
                SelectedUser.Image = signature;
                Repository.AddOrUpdate(SelectedUser);
            };

            window.ShowDialog();
        }