예제 #1
0
 private void AddToQueue()
 {
     if (String.IsNullOrEmpty(NewQueueItem) || !File.Exists(NewQueueItem))
     {
         return;
     }
     ConvertQueue.Add(new ConvertModel()
     {
         FileName = Path.GetFileName(NewQueueItem),
         FilePath = NewQueueItem,
         DestName = Path.ChangeExtension(NewQueueItem, ".mp4")
     });
 }
예제 #2
0
 private void GenerateTestData()
 {
     ConvertQueue.Add(new ConvertModel()
     {
         FileName = "Cool Vid 1.flv"
     });
     ConvertQueue.Add(new ConvertModel()
     {
         FileName = "Cool Vid 2.flv"
     });
     ConvertQueue.Add(new ConvertModel()
     {
         FileName = "Funny Vid 1.flv"
     });
 }