periodic commit - this one is broken
This commit is contained in:
parent
b48d2554c2
commit
48bc1ccc74
@ -29,7 +29,7 @@
|
|||||||
</system.diagnostics>
|
</system.diagnostics>
|
||||||
<applicationSettings>
|
<applicationSettings>
|
||||||
<PdfScribe.Properties.Settings>
|
<PdfScribe.Properties.Settings>
|
||||||
<setting name="DefaultOutputFile" serializeAs="String">
|
<setting name="OutputFile" serializeAs="String">
|
||||||
<value>%Temp%\PDFSCRIBE.PDF</value>
|
<value>%Temp%\PDFSCRIBE.PDF</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AskUserForOutputFilename" serializeAs="String">
|
<setting name="AskUserForOutputFilename" serializeAs="String">
|
||||||
|
@ -5,6 +5,7 @@ using System.Drawing;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
|
||||||
@ -147,6 +148,23 @@ namespace PdfScribe
|
|||||||
static String GetOutputFilename()
|
static String GetOutputFilename()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
String outputFilename = Path.Combine(Path.GetTempPath(), defaultOutputFilename);
|
||||||
|
|
||||||
|
if (!Properties.Settings.Default.AskUserForOutputFilename)
|
||||||
|
{
|
||||||
|
if (Directory.Exists(Path.GetFullPath(Properties.Settings.Default.OutputFile)))
|
||||||
|
{
|
||||||
|
if (
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
return String.Empty;
|
return String.Empty;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
6
PdfScribe/Properties/Settings.Designer.cs
generated
6
PdfScribe/Properties/Settings.Designer.cs
generated
@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.18408
|
// Runtime Version:4.0.30319.34003
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@ -26,9 +26,9 @@ namespace PdfScribe.Properties {
|
|||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("%Temp%\\PDFSCRIBE.PDF")]
|
[global::System.Configuration.DefaultSettingValueAttribute("%Temp%\\PDFSCRIBE.PDF")]
|
||||||
public string DefaultOutputFile {
|
public string OutputFile {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["DefaultOutputFile"]));
|
return ((string)(this["OutputFile"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="PdfScribe.Properties" GeneratedClassName="Settings">
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="PdfScribe.Properties" GeneratedClassName="Settings">
|
||||||
<Profiles />
|
<Profiles />
|
||||||
<Settings>
|
<Settings>
|
||||||
<Setting Name="DefaultOutputFile" Type="System.String" Scope="Application">
|
<Setting Name="OutputFile" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">%Temp%\PDFSCRIBE.PDF</Value>
|
<Value Profile="(Default)">%Temp%\PDFSCRIBE.PDF</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AskUserForOutputFilename" Type="System.Boolean" Scope="Application">
|
<Setting Name="AskUserForOutputFilename" Type="System.Boolean" Scope="Application">
|
||||||
|
Loading…
Reference in New Issue
Block a user