Updaet 20240730

This commit is contained in:
Stefan Hutter
2024-07-30 18:38:29 +02:00
parent dc2918e024
commit 8fb1b93185
71 changed files with 6388 additions and 299663 deletions

View File

@@ -27,18 +27,23 @@ namespace OnDoc
private static Mutex mutex = null;
const string AppId = "OnDoc5094533C-A613-4889-A0E3-8C28C130C6AA)"; // Unique par application
//static Start MyForm;
//static Start MyForm = new Start();
///
[STAThread]
static void Main(string[] args)
{
ExternalCall.sourceparam = "";
if (args.Length > 0)
{
if (args[0].ToString().ToUpper().Substring(args[0].ToString().Length - 4, 4) == ".EDK")
{
EDK_Data.Load_EDK_File(args[0]);
AppParams.init();
string destfile = AppParams.tempdir + DateTime.Now.ToString("yyyyMMddHHmmss") + "_tmpfile.edk";
System.IO.File.Copy(args[0],destfile);
//EDK_Data.Load_EDK_File(args[0]);
}
else
{
@@ -46,7 +51,7 @@ namespace OnDoc
{
AppParams.init();
//MessageBox.Show(AppParams.tempdir);
string destfile = AppParams.tempdir + "tmpfile.tmp";
string destfile = AppParams.tempdir + DateTime.Now.ToString("yyyyMMddHHmmss")+ "_tmpfile.uri";
using (StreamWriter outputfile = new StreamWriter(destfile))
{
outputfile.WriteLine(Uri.UnescapeDataString(args[0]));
@@ -67,6 +72,8 @@ namespace OnDoc
if (!createdNew)
{
//MyForm.runparams();
return;
}
@@ -74,7 +81,7 @@ namespace OnDoc
Application.SetCompatibleTextRenderingDefault(false);
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXxccXVWR2VdUUZ3VkM=");
AppParams.init();
// MyForm = new Start();
// // MyForm = new Start();
// Application.Run(MyForm);
Application.Run(new Start());