Exemple #1
0
        private void btnChooseDocument_Click(object sender, RoutedEventArgs e)
        {
            DocumentSelectDialog dcpDialog = new DocumentSelectDialog();

            bool?result = dcpDialog.ShowDialog();

            if (result == true)
            {
                CurrentPhonebookDocumentForm.Path = dcpDialog?.SelectedDocument?.FullPath;
            }
            //System.Windows.Forms.OpenFileDialog fileDIalog = new System.Windows.Forms.OpenFileDialog();

            //fileDIalog.Multiselect = true;
            //fileDIalog.FileOk += FileDIalog_FileOk;
            //fileDIalog.Filter = "All Files (*.*)|*.*";
            //fileDIalog.ShowDialog();
        }
Exemple #2
0
        private void btnChooseDocument_Click(object sender, RoutedEventArgs e)
        {
            DocumentSelectDialog dcpDialog = new DocumentSelectDialog();

            bool?result = dcpDialog.ShowDialog();

            if (result == true)
            {
                CurrentPhysicalPersonDocumentForm.Path = dcpDialog?.SelectedDocument?.FullPath;
                CurrentPhysicalPersonDocumentForm.Name = System.IO.Path.GetFileNameWithoutExtension(CurrentPhysicalPersonDocumentForm?.Path ?? "");
            }
            //System.Windows.Forms.OpenFileDialog fileDIalog = new System.Windows.Forms.OpenFileDialog();

            //fileDIalog.Multiselect = true;
            //fileDIalog.FileOk += FileDIalog_FileOk;
            //fileDIalog.Filter = "All Files (*.*)|*.*";
            //fileDIalog.ShowDialog();
        }