/// <summary> /// get the rename task object /// </summary> private RenameTask GetTask() { var collection = FileListBox.Items.OfType<FileObject>(); var generator = new SerialNameGenerator(PrefixTextBox.Text, SuffixTextBox.Text, Convert.ToInt32(SeedNumericUpDown.Value), Convert.ToInt32(DigitNumericUpDown.Value)); return new RenameTask(collection, generator); }
/// <summary> /// get the rename task object /// </summary> private RenameTask GetTask() { var collection = FileListBox.Items.OfType <FileObject>(); var generator = new SerialNameGenerator(PrefixTextBox.Text, SuffixTextBox.Text, Convert.ToInt32(SeedNumericUpDown.Value), Convert.ToInt32(DigitNumericUpDown.Value)); return(new RenameTask(collection, generator)); }