Example #1
0
        private void ChoseSourceBtn_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new FolderBrowserDialog();

            dialog.ShowDialog();
            tbSource.Text = dialog.SelectedPath;
            AddToLog($"Nouveau dossier source selectioné: {tbSource.Text}");
            int filesToBeTreated = Organizer.CountNumberOfJpgFiles(tbSource.Text);

            AddToLog($"Nombre de photos à trier: {filesToBeTreated}");
        }
Example #2
0
        private void btnStart_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(tbSource.Text))
            {
                return;
            }
            if (string.IsNullOrWhiteSpace(tbDest.Text))
            {
                return;
            }

            AddToLog(Organizer.ReadExif(tbSource.Text, tbDest.Text));
        }