private void Button_Browse_Click(object sender, RoutedEventArgs e)
        {
            if (defaultDirectory == "")
            {
                defaultDirectory = System.IO.Path.GetDirectoryName(MainWindow.currentFileName);
            }
            OpenFileDialog openFileDialog1 = new OpenFileDialog
            {
                Filter           = "Image Files| *.png;*.jpg",
                Title            = "Select an image file",
                Multiselect      = true,
                InitialDirectory = defaultDirectory,
            };
            // Show the Dialog.
            // If the user clicked OK in the dialog
            DialogResult result = openFileDialog1.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                defaultDirectory = System.IO.Path.GetDirectoryName(openFileDialog1.FileName);
                ModuleImageFile parent = (ModuleImageFile)base.ParentModule;

                textBoxPath.Text = openFileDialog1.FileName;
                List <string> fileList;
                string        curPath;
                if (openFileDialog1.FileNames.Length > 1)
                {
                    fileList = openFileDialog1.FileNames.ToList();
                    curPath  = fileList[0];
                }
                else
                {
                    fileList = GetFileList(openFileDialog1.FileName);
                    curPath  = openFileDialog1.FileName;
                }

                parent.SetParameters(fileList, curPath, (bool)cbAutoCycle.IsChecked, (bool)cbNameIsDescription.IsChecked);
            }
        }
        private void CheckBoxChanged(object sender, RoutedEventArgs e)
        {
            ModuleImageFile parent = (ModuleImageFile)base.ParentModule;

            parent.SetParameters(null, "", (bool)cbAutoCycle.IsChecked, (bool)cbNameIsDescription.IsChecked);
        }
        private void Button_OK_Click(object sender, RoutedEventArgs e)
        {
            ModuleImageFile parent = (ModuleImageFile)base.ParentModule;

            parent.SetParameters(null, textBoxPath.Text, (bool)cbAutoCycle.IsChecked, (bool)cbNameIsDescription.IsChecked);
        }