\r
#region Properties for Settings\r
\r
+ /// <summary>\r
+ /// Gets or sets Destination.\r
+ /// </summary>\r
+ public string Destination\r
+ {\r
+ get\r
+ {\r
+ return this.CurrentTask.Destination;\r
+ }\r
+ set\r
+ {\r
+ this.CurrentTask.Destination = value;\r
+ this.NotifyOfPropertyChange(() => this.Destination);\r
+ }\r
+ }\r
+\r
/// <summary>\r
/// Gets or sets SelectedTitle.\r
/// </summary>\r
\r
if (this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.AutoNaming))\r
{\r
- this.CurrentTask.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName);\r
+ this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName);\r
}\r
this.NotifyOfPropertyChange(() => this.CurrentTask);\r
\r
this.CurrentTask.StartPoint = value;\r
this.NotifyOfPropertyChange(() => this.SelectedStartPoint);\r
this.Duration = this.DurationCalculation();\r
+\r
+ if (this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.AutoNaming))\r
+ {\r
+ this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName);\r
+ }\r
}\r
}\r
\r
this.CurrentTask.EndPoint = value;\r
this.NotifyOfPropertyChange(() => this.SelectedEndPoint);\r
this.Duration = this.DurationCalculation();\r
+\r
+ if (this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.AutoNaming))\r
+ {\r
+ this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName);\r
+ }\r
}\r
}\r
\r
return;\r
}\r
\r
- if (string.IsNullOrEmpty(this.CurrentTask.Destination))\r
+ if (string.IsNullOrEmpty(this.Destination))\r
{\r
this.errorService.ShowMessageBox("The Destination field was empty.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
return;\r
return;\r
}\r
\r
- if (File.Exists(this.CurrentTask.Destination))\r
+ if (File.Exists(this.Destination))\r
{\r
MessageBoxResult result = this.errorService.ShowMessageBox("The current file already exists, do you wish to overwrite it?", "Question", MessageBoxButton.YesNo, MessageBoxImage.Question);\r
if (result == MessageBoxResult.No)\r
break;\r
}\r
\r
- this.CurrentTask.Destination = dialog.FileName;\r
+ this.Destination = dialog.FileName;\r
this.NotifyOfPropertyChange(() => this.CurrentTask);\r
} \r
}\r
// Update The browse file extension display\r
if (Path.HasExtension(newExtension))\r
{\r
- this.CurrentTask.Destination = Path.ChangeExtension(this.CurrentTask.Destination, newExtension);\r
+ this.Destination = Path.ChangeExtension(this.Destination, newExtension);\r
}\r
\r
// Update the UI Display\r
userSettingService.SetUserSetting(ASUserSettingConstants.ShowCLI, this.ShowCliWindow);\r
userSettingService.SetUserSetting(ASUserSettingConstants.ClearCompletedFromQueue, this.ClearQueueOnEncodeCompleted);\r
userSettingService.SetUserSetting(ASUserSettingConstants.PreviewScanCount, this.SelectedPreviewCount);\r
- userSettingService.SetUserSetting(ASUserSettingConstants.X264Step, double.Parse(this.SelectedGranulairty));\r
+ userSettingService.SetUserSetting(ASUserSettingConstants.X264Step, double.Parse(this.SelectedGranulairty, CultureInfo.InvariantCulture));\r
\r
int value;\r
if (int.TryParse(this.MinLength.ToString(), out value))\r
<Label Content="Destination" FontWeight="Bold" />\r
<StackPanel Orientation="Horizontal">\r
<Label Content="File" Margin="8,0,0,0" />\r
- <TextBox Name="Destination" Margin="8,0,0,0" Width="600" Text="{Binding CurrentTask.Destination, UpdateSourceTrigger=PropertyChanged}" />\r
+ <TextBox Name="Destination" Margin="8,0,0,0" Width="600" Text="{Binding Destination, UpdateSourceTrigger=PropertyChanged}" />\r
<Button Name="DestinationBrowser" Margin="8,0,0,0" Content="Browse" Micro:Message.Attach="[Event Click] = [Action BrowseDestination]" />\r
</StackPanel>\r
</StackPanel>\r