Esempio n. 1
0
        private void btnScahner_Click(object sender, RoutedEventArgs e)
        {
            Scanner_Window window = new Scanner_Window();
            bool?          result = window.ShowDialog();

            if (result == true)
            {
                var path = window?.SelectedDocument;

                CurrentPhonebookDocumentForm.Path = path;
            }
        }
        private void btnScahner_Click(object sender, RoutedEventArgs e)
        {
            Scanner_Window window = new Scanner_Window();
            bool?          result = window.ShowDialog();

            if (result == true)
            {
                var path = window?.SelectedDocument;

                CurrentOutputInvoiceDocumentForm.Path = path;
                CurrentOutputInvoiceDocumentForm.Name = System.IO.Path.GetFileNameWithoutExtension(CurrentOutputInvoiceDocumentForm?.Path ?? "");
            }
        }
        private void btnScahnerNote_Click(object sender, RoutedEventArgs e)
        {
            Scanner_Window window = new Scanner_Window();
            bool?          result = window.ShowDialog();

            if (result == true)
            {
                var path = window?.SelectedDocument;

                CurrentConstructionSiteDocumentForm.Path = path;
                var file = new FileInfo(CurrentConstructionSiteDocumentForm.Path);
                CurrentConstructionSiteDocumentForm.Name = System.IO.Path.GetFileNameWithoutExtension(CurrentConstructionSiteDocumentForm?.Path ?? "");
            }
        }