diff --git a/Program.cs b/Program.cs index d418d39..4831cc5 100644 --- a/Program.cs +++ b/Program.cs @@ -6,15 +6,15 @@ namespace RTFPad { static class Program { - /// - /// The main entry point for the application. - /// [STAThread] - static void Main() + static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new rtfPadForm()); + string startDoc = ""; + if (args.Length > 0) { startDoc = args[0]; } + if (startDoc == "") { Application.Run(new rtfPadForm()); } + else { Application.Run(new rtfPadForm(startDoc)); } } } } \ No newline at end of file diff --git a/RTFPad.csproj b/RTFPad.csproj index ee3fc7c..48b043d 100644 --- a/RTFPad.csproj +++ b/RTFPad.csproj @@ -10,14 +10,30 @@ Properties RTFPad RTFPad - v2.0 + v4.0 512 + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true x86 true full - false + true bin\Debug\ DEBUG;TRACE prompt @@ -33,7 +49,10 @@ 4 - icon.ico + RTFPad.ico + + + RTFPad.Program @@ -83,10 +102,12 @@ True Resources.resx + True rtfPadForm.cs + SettingsSingleFileGenerator Settings.Designer.cs @@ -99,6 +120,14 @@ + + + + + False + .NET Framework 3.5 SP1 + false +