예제 #1
0
 public NameFormater(FilesystemUtils filesystemUtils)
 {
     InitializeComponent();
     FormatBefore = Format = textBox1.Text = "%user% - %title% %quality%";
     Init();
 }
예제 #2
0
        public void RenameFiles()
        {
            FilesystemUtils.RenameFilesFromDirectory(this.Directory);

            this.GetFilenamesFromDirectory();
        }
예제 #3
0
 /// <summary>
 /// Assume Replace illegal characters to make it a nice preview. No need to make it based on the current option
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     textBox2.Text = FilesystemUtils.BuildName(textBox1.Text, track_sample, true);
 }
예제 #4
0
        private string GetStateFilePath(string dataFlowName)
        {
            var stateDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location) ?? throw new InvalidOperationException();

            return(Path.Combine(stateDirectory, "State", FilesystemUtils.CoerceValidFileName(dataFlowName + ".state")));
        }