small code refactoring
This commit is contained in:
10
Directory.Build.props
Normal file
10
Directory.Build.props
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<PackageProjectUrl>https://git.pilzinsel64.de/pilz-framework</PackageProjectUrl>
|
||||||
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
<GenerateSerializationAssemblies>False</GenerateSerializationAssemblies>
|
||||||
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
|
<NoWarn>1591</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
@@ -1,7 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
|
||||||
<add key="Telerik UI for WinForms 2022.2.510.0" value="C:\Program Files (x86)\Progress\Telerik UI for WinForms R2 2022\Bin60\NuGet" />
|
|
||||||
<add key="Telerik UI for WinForms UI.for.WinForms.AllControls.Net60.2022.3.1109" value="C:\Users\Pilz\AppData\Roaming\Telerik\Updates\Telerik_UI_For_WinForms_2022_3_1109_Dev_dlls\Bin60\NuGet" />
|
|
||||||
</packageSources>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class ApplicationVersionInput
|
||||||
{
|
{
|
||||||
public partial class ApplicationVersionInput
|
|
||||||
{
|
|
||||||
|
|
||||||
// C o n s t r u c t o r s
|
// C o n s t r u c t o r s
|
||||||
|
|
||||||
@@ -72,5 +71,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,11 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Pilz.Updating.Administration.Discord;
|
using Pilz.Updating.Administration.Discord;
|
||||||
|
using System;
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class DiscordBotSettingsWindow : RadForm
|
||||||
{
|
{
|
||||||
public partial class DiscordBotSettingsWindow : RadForm
|
|
||||||
{
|
|
||||||
private readonly DiscordBotConfig config = null;
|
private readonly DiscordBotConfig config = null;
|
||||||
private Channels currentChannel = Channels.Stable;
|
private Channels currentChannel = Channels.Stable;
|
||||||
private readonly bool hasInit = false;
|
private readonly bool hasInit = false;
|
||||||
@@ -66,5 +60,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
|
|
||||||
ShowDefaultMessage();
|
ShowDefaultMessage();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,20 +1,15 @@
|
|||||||
using Pilz.Updating.Administration.Discord;
|
using Pilz.Updating.Administration.Discord;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Telerik.WinControls;
|
using Telerik.WinControls;
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class DiscordPostDialog : RadForm
|
||||||
{
|
{
|
||||||
public partial class DiscordPostDialog : RadForm
|
|
||||||
{
|
|
||||||
// F i e l d s
|
// F i e l d s
|
||||||
|
|
||||||
private readonly DiscordBot bot;
|
private readonly DiscordBot bot;
|
||||||
@@ -82,10 +77,9 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
RadMessageBox.Show(this, "Nachricht erfolgreich gesendet.", string.Empty, MessageBoxButtons.OK, RadMessageIcon.Info);
|
RadMessageBox.Show(this, "Nachricht erfolgreich gesendet.", string.Empty, MessageBoxButtons.OK, RadMessageIcon.Info);
|
||||||
DialogResult = DialogResult.OK;
|
DialogResult = DialogResult.OK;
|
||||||
}
|
}
|
||||||
catch(Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
RadMessageBox.Show(this, "Fehler beim Senden der Nachricht.", string.Empty, MessageBoxButtons.OK, RadMessageIcon.Error);
|
RadMessageBox.Show(this, "Fehler beim Senden der Nachricht.", string.Empty, MessageBoxButtons.OK, RadMessageIcon.Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
using System;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Reflection;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public static class General
|
||||||
{
|
{
|
||||||
public static class General
|
|
||||||
{
|
|
||||||
private static string myAppPath = string.Empty;
|
private static string myAppPath = string.Empty;
|
||||||
public static UpdateProject CurProject { get; set; } = null;
|
public static UpdateProject CurProject { get; set; } = null;
|
||||||
|
|
||||||
@@ -31,5 +25,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
else
|
else
|
||||||
WebRequest.DefaultWebProxy.Credentials = null;
|
WebRequest.DefaultWebProxy.Credentials = null;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
|
||||||
// Laufzeitversion:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
|
||||||
// der Code erneut generiert wird.
|
|
||||||
// </auto-generated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI.My
|
|
||||||
{
|
|
||||||
|
|
||||||
// HINWEIS: Diese Datei wird automatisch generiert und darf nicht direkt bearbeitet werden. Wenn Sie Änderungen vornehmen möchten
|
|
||||||
// oder in dieser Datei Buildfehler auftreten, wechseln Sie zum Projekt-Designer.
|
|
||||||
// (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
|
|
||||||
// Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
|
|
||||||
//
|
|
||||||
internal partial class MyApplication
|
|
||||||
{
|
|
||||||
[DebuggerStepThrough()]
|
|
||||||
public MyApplication() : base(Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
|
||||||
{
|
|
||||||
IsSingleInstance = false;
|
|
||||||
EnableVisualStyles = true;
|
|
||||||
SaveMySettingsOnExit = true;
|
|
||||||
ShutdownStyle = Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterAllFormsClose;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerStepThrough()]
|
|
||||||
protected override void OnCreateMainForm()
|
|
||||||
{
|
|
||||||
MainForm = MyProject.Forms.UpdateManagerWindow;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<MySubMain>true</MySubMain>
|
|
||||||
<MainForm>ToolSelectionWindow</MainForm>
|
|
||||||
<SingleInstance>false</SingleInstance>
|
|
||||||
<ShutdownMode>1</ShutdownMode>
|
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
|
||||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
|
||||||
</MyApplicationData>
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
using global::System;
|
|
||||||
using global::System.ComponentModel;
|
|
||||||
using global::System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI.My
|
|
||||||
{
|
|
||||||
internal static partial class MyProject
|
|
||||||
{
|
|
||||||
internal partial class MyForms
|
|
||||||
{
|
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
||||||
public ApplicationVersionInput m_ApplicationVersionInput;
|
|
||||||
|
|
||||||
public ApplicationVersionInput ApplicationVersionInput
|
|
||||||
{
|
|
||||||
[DebuggerHidden]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
m_ApplicationVersionInput = MyForms.Create__Instance__(m_ApplicationVersionInput);
|
|
||||||
return m_ApplicationVersionInput;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden]
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value == m_ApplicationVersionInput)
|
|
||||||
return;
|
|
||||||
if (value is object)
|
|
||||||
throw new ArgumentException("Property can only be set to Nothing");
|
|
||||||
Dispose__Instance__(ref m_ApplicationVersionInput);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
||||||
public UpdateManagerWindow m_UpdateManagerWindow;
|
|
||||||
|
|
||||||
public UpdateManagerWindow UpdateManagerWindow
|
|
||||||
{
|
|
||||||
[DebuggerHidden]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
m_UpdateManagerWindow = MyForms.Create__Instance__(m_UpdateManagerWindow);
|
|
||||||
return m_UpdateManagerWindow;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden]
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value == m_UpdateManagerWindow)
|
|
||||||
return;
|
|
||||||
if (value is object)
|
|
||||||
throw new ArgumentException("Property can only be set to Nothing");
|
|
||||||
Dispose__Instance__(ref m_UpdateManagerWindow);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
||||||
public UpdateServerInfoEditor m_UpdateServerInfoEditor;
|
|
||||||
|
|
||||||
public UpdateServerInfoEditor UpdateServerInfoEditor
|
|
||||||
{
|
|
||||||
[DebuggerHidden]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
m_UpdateServerInfoEditor = MyForms.Create__Instance__(m_UpdateServerInfoEditor);
|
|
||||||
return m_UpdateServerInfoEditor;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden]
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value == m_UpdateServerInfoEditor)
|
|
||||||
return;
|
|
||||||
if (value is object)
|
|
||||||
throw new ArgumentException("Property can only be set to Nothing");
|
|
||||||
Dispose__Instance__(ref m_UpdateServerInfoEditor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,305 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
namespace Pilz.Updating.Administration.GUI.My
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyApplication : Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[STAThread()]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal static void Main(string[] Args)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Application.SetCompatibleTextRenderingDefault(UseCompatibleTextRendering);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
MyProject.Application.Run(Args);
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyComputer : Microsoft.VisualBasic.Devices.Computer
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyComputer() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[HideModuleName()]
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
internal static partial class MyProject
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Computer")]
|
|
||||||
internal static MyComputer Computer
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_ComputerObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyComputer> m_ComputerObjectProvider = new ThreadSafeObjectProvider<MyComputer>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Application")]
|
|
||||||
internal static MyApplication Application
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_AppObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyApplication> m_AppObjectProvider = new ThreadSafeObjectProvider<MyApplication>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.User")]
|
|
||||||
internal static Microsoft.VisualBasic.ApplicationServices.User User
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_UserObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User> m_UserObjectProvider = new ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User>();
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Forms")]
|
|
||||||
internal static MyForms Forms
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyFormsObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Windows.Forms.Form", "Create__Instance__", "Dispose__Instance__", "My.MyProject.Forms")]
|
|
||||||
internal sealed partial class MyForms
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T Instance) where T : Form, new()
|
|
||||||
{
|
|
||||||
if (Instance is null || Instance.IsDisposed)
|
|
||||||
{
|
|
||||||
if (m_FormBeingCreated is object)
|
|
||||||
{
|
|
||||||
if (m_FormBeingCreated.ContainsKey(typeof(T)) == true)
|
|
||||||
{
|
|
||||||
throw new InvalidOperationException(Microsoft.VisualBasic.CompilerServices.Utils.GetResourceString("WinForms_RecursiveFormCreate"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_FormBeingCreated = new Hashtable();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_FormBeingCreated.Add(typeof(T), null);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
catch (System.Reflection.TargetInvocationException ex) when (ex.InnerException is object)
|
|
||||||
{
|
|
||||||
string BetterMessage = Microsoft.VisualBasic.CompilerServices.Utils.GetResourceString("WinForms_SeeInnerException", ex.InnerException.Message);
|
|
||||||
throw new InvalidOperationException(BetterMessage, ex.InnerException);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
m_FormBeingCreated.Remove(typeof(T));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return Instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance) where T : Form
|
|
||||||
{
|
|
||||||
instance.Dispose();
|
|
||||||
instance = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyForms() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
[ThreadStatic()]
|
|
||||||
private static Hashtable m_FormBeingCreated;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyForms);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static ThreadSafeObjectProvider<MyForms> m_MyFormsObjectProvider = new ThreadSafeObjectProvider<MyForms>();
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.WebServices")]
|
|
||||||
internal static MyWebServices WebServices
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyWebServicesObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")]
|
|
||||||
internal sealed class MyWebServices
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyWebServices);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T instance) where T : new()
|
|
||||||
{
|
|
||||||
if (instance == null)
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance)
|
|
||||||
{
|
|
||||||
instance = default;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyWebServices() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyWebServices> m_MyWebServicesObjectProvider = new ThreadSafeObjectProvider<MyWebServices>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.InteropServices.ComVisible(false)]
|
|
||||||
internal sealed class ThreadSafeObjectProvider<T> where T : new()
|
|
||||||
{
|
|
||||||
internal T GetInstance
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElseDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (m_ThreadStaticValue == null)
|
|
||||||
m_ThreadStaticValue = new T();
|
|
||||||
return m_ThreadStaticValue;
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public ThreadSafeObjectProvider() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElseDirectiveTrivia */
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[ThreadStatic()]
|
|
||||||
private static T m_ThreadStaticValue;
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
// See Compiler::LoadXmlSolutionExtension
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Xml.Linq;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI.My
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal sealed class InternalXmlHelper
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private InternalXmlHelper()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_Value(IEnumerable<XElement> source)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return item.Value;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_Value(IEnumerable<XElement> source, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.Value = value;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(IEnumerable<XElement> source, XName name)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return Conversions.ToString(item.Attribute(name));
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(IEnumerable<XElement> source, XName name, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.SetAttributeValue(name, value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(XElement source, XName name)
|
|
||||||
{
|
|
||||||
return Conversions.ToString(source.Attribute(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(XElement source, XName name, string value)
|
|
||||||
{
|
|
||||||
source.SetAttributeValue(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateAttribute(XName name, object value)
|
|
||||||
{
|
|
||||||
if (value is null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new XAttribute(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateNamespaceAttribute(XName name, XNamespace ns)
|
|
||||||
{
|
|
||||||
var a = new XAttribute(name, ns.NamespaceName);
|
|
||||||
a.AddAnnotation(ns);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static object RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, object obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IEnumerable elems = obj as IEnumerable;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elems);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static IEnumerable RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, IEnumerable obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
IEnumerable<XElement> elems = obj as IEnumerable<XElement>;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return elems.Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessXElement);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj.Cast<object>().Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private sealed class RemoveNamespaceAttributesClosure
|
|
||||||
{
|
|
||||||
private readonly string[] m_inScopePrefixes;
|
|
||||||
private readonly XNamespace[] m_inScopeNs;
|
|
||||||
private readonly List<XAttribute> m_attributes;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal RemoveNamespaceAttributesClosure(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes)
|
|
||||||
{
|
|
||||||
m_inScopePrefixes = inScopePrefixes;
|
|
||||||
m_inScopeNs = inScopeNs;
|
|
||||||
m_attributes = attributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal XElement ProcessXElement(XElement elem)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal object ProcessObject(object obj)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XElement RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, XElement e)
|
|
||||||
{
|
|
||||||
if (e is object)
|
|
||||||
{
|
|
||||||
var a = e.FirstAttribute;
|
|
||||||
while (a is object)
|
|
||||||
{
|
|
||||||
var nextA = a.NextAttribute;
|
|
||||||
if (a.IsNamespaceDeclaration)
|
|
||||||
{
|
|
||||||
var ns = a.Annotation<XNamespace>();
|
|
||||||
string prefix = a.Name.LocalName;
|
|
||||||
if (ns is object)
|
|
||||||
{
|
|
||||||
if (inScopePrefixes is object && inScopeNs is object)
|
|
||||||
{
|
|
||||||
int lastIndex = inScopePrefixes.Length - 1;
|
|
||||||
for (int i = 0, loopTo = lastIndex; i <= loopTo; i++)
|
|
||||||
{
|
|
||||||
string currentInScopePrefix = inScopePrefixes[i];
|
|
||||||
var currentInScopeNs = inScopeNs[i];
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is not in scope
|
|
||||||
// Now check whether it's going to be in scope because it is in the attributes list
|
|
||||||
|
|
||||||
if (attributes is object)
|
|
||||||
{
|
|
||||||
int lastIndex = attributes.Count - 1;
|
|
||||||
for (int i = 0, loopTo1 = lastIndex; i <= loopTo1; i++)
|
|
||||||
{
|
|
||||||
var currentA = attributes[i];
|
|
||||||
string currentInScopePrefix = currentA.Name.LocalName;
|
|
||||||
var currentInScopeNs = currentA.Annotation<XNamespace>();
|
|
||||||
if (currentInScopeNs is object)
|
|
||||||
{
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is definitely not in scope
|
|
||||||
a.Remove();
|
|
||||||
// namespace is not defined either. Add this attributes list
|
|
||||||
attributes.Add(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a = nextA;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Microsoft.VisualBasic
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Module | AttributeTargets.Assembly, Inherited = false)]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
internal sealed class Embedded : Attribute
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
using Microsoft.VisualBasic.ApplicationServices;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Telerik.WinControls;
|
|
||||||
using Telerik.WinControls.Themes;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI.My
|
|
||||||
{
|
|
||||||
|
|
||||||
// HINWEIS: Diese Datei wird automatisch generiert und darf nicht direkt bearbeitet werden. Wenn Sie Änderungen vornehmen möchten
|
|
||||||
// oder in dieser Datei Buildfehler auftreten, wechseln Sie zum Projekt-Designer.
|
|
||||||
// (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
|
|
||||||
// Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
|
|
||||||
//
|
|
||||||
internal partial class MyApplication
|
|
||||||
{
|
|
||||||
protected override bool OnStartup(StartupEventArgs eventArgs)
|
|
||||||
{
|
|
||||||
var success = ThemeResolutionService.LoadPackageResource("Pilz.Updating.Administration.GUI.CustomThemes.Office2019DarkPurple.tssp");
|
|
||||||
if (success)
|
|
||||||
ThemeResolutionService.ApplicationThemeName = "Office2019DarkPurple";
|
|
||||||
return base.OnStartup(eventArgs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class PackageDescriptionEditor
|
||||||
{
|
{
|
||||||
public partial class PackageDescriptionEditor
|
|
||||||
{
|
|
||||||
|
|
||||||
// C o n s t r u c t o r s
|
// C o n s t r u c t o r s
|
||||||
|
|
||||||
@@ -15,9 +14,9 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
|
|
||||||
radDropDownList_Formatting.Items.AddRange(new RadListDataItem[]
|
radDropDownList_Formatting.Items.AddRange(new RadListDataItem[]
|
||||||
{
|
{
|
||||||
new RadListDataItem { Text = "Nur Text", Tag = UpdateNotesContentType.PlainText },
|
new() { Text = "Nur Text", Tag = UpdateNotesContentType.PlainText },
|
||||||
new RadListDataItem { Text = "Markdown", Tag = UpdateNotesContentType.Markdown },
|
new() { Text = "Markdown", Tag = UpdateNotesContentType.Markdown },
|
||||||
new RadListDataItem { Text = "HTML", Tag = UpdateNotesContentType.HTML },
|
new() { Text = "HTML", Tag = UpdateNotesContentType.HTML },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,5 +57,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
radDropDownList_Formatting.SelectedItem = item;
|
radDropDownList_Formatting.SelectedItem = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -48,13 +48,10 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.5" />
|
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.5" />
|
||||||
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
|
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
|
||||||
<PackageReference Include="Pilz.Cryptography" Version="2.0.0" />
|
<PackageReference Include="Pilz.Cryptography" Version="2.0.1" />
|
||||||
<PackageReference Include="Pilz.IO" Version="2.0.0" />
|
<PackageReference Include="Pilz.IO" Version="2.0.0" />
|
||||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||||
<PackageReference Include="UI.for.WinForms.AllControls.Net60">
|
|
||||||
<Version>2023.1.117</Version>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Import Include="Microsoft.VisualBasic" />
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
@@ -71,15 +68,11 @@
|
|||||||
<Import Include="Z.Collections.Extensions" />
|
<Import Include="Z.Collections.Extensions" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="DiscordBotSettingsWindow.cs">
|
<Compile Update="DiscordBotSettingsWindow.cs" />
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="DiscordBotSettingsWindow.Designer.cs">
|
<Compile Update="DiscordBotSettingsWindow.Designer.cs">
|
||||||
<DependentUpon>DiscordBotSettingsWindow.cs</DependentUpon>
|
<DependentUpon>DiscordBotSettingsWindow.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="DiscordPostDialog.cs">
|
<Compile Update="DiscordPostDialog.cs" />
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="DiscordPostDialog.Designer.cs">
|
<Compile Update="DiscordPostDialog.Designer.cs">
|
||||||
<DependentUpon>DiscordPostDialog.cs</DependentUpon>
|
<DependentUpon>DiscordPostDialog.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -90,17 +83,11 @@
|
|||||||
<Compile Update="ApplicationVersionInput.Designer.cs">
|
<Compile Update="ApplicationVersionInput.Designer.cs">
|
||||||
<DependentUpon>ApplicationVersionInput.cs</DependentUpon>
|
<DependentUpon>ApplicationVersionInput.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="ApplicationVersionInput.cs">
|
<Compile Update="ApplicationVersionInput.cs" />
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="UpdateManagerWindow.cs" />
|
<Compile Update="UpdateManagerWindow.cs" />
|
||||||
<Compile Update="UpdateManagerWindow.Designer.cs">
|
<Compile Update="UpdateManagerWindow.Designer.cs">
|
||||||
<DependentUpon>UpdateManagerWindow.cs</DependentUpon>
|
<DependentUpon>UpdateManagerWindow.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="My Project\Application.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Application.myapp</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="Properties\Resources.Designer.cs">
|
<Compile Update="Properties\Resources.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
@@ -111,9 +98,7 @@
|
|||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="ProxyConfigEditor.cs">
|
<Compile Update="ProxyConfigEditor.cs" />
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="ProxyConfigEditor.Designer.cs">
|
<Compile Update="ProxyConfigEditor.Designer.cs">
|
||||||
<DependentUpon>ProxyConfigEditor.cs</DependentUpon>
|
<DependentUpon>ProxyConfigEditor.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -162,10 +147,6 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="My Project\Application.myapp">
|
|
||||||
<Generator>MyApplicationCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Application.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<CustomToolNamespace>Pilz.Updating.Administration.GUI.My</CustomToolNamespace>
|
<CustomToolNamespace>Pilz.Updating.Administration.GUI.My</CustomToolNamespace>
|
||||||
@@ -217,9 +198,11 @@
|
|||||||
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
|
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Markdig" Version="0.33.0" />
|
<PackageReference Include="Markdig" Version="0.37.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
|
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
|
||||||
|
<PackageReference Include="UI.for.WinForms.Common" Version="2024.2.514" />
|
||||||
|
<PackageReference Include="UI.for.WinForms.Themes" Version="2024.2.514" />
|
||||||
<PackageReference Include="Z.ExtensionMethods.WithNamespace" Version="2.1.1" />
|
<PackageReference Include="Z.ExtensionMethods.WithNamespace" Version="2.1.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
21
Pilz.Updating.Administration.GUI/Program.cs
Normal file
21
Pilz.Updating.Administration.GUI/Program.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using Pilz.Updating.Administration.GUI;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Telerik.WinControls;
|
||||||
|
|
||||||
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
internal static class Program
|
||||||
|
{
|
||||||
|
internal static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Application.EnableVisualStyles();
|
||||||
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
|
||||||
|
|
||||||
|
var success = ThemeResolutionService.LoadPackageResource("Pilz.Updating.Administration.GUI.CustomThemes.Office2019DarkPurple.tssp");
|
||||||
|
if (success)
|
||||||
|
ThemeResolutionService.ApplicationThemeName = "Office2019DarkPurple";
|
||||||
|
|
||||||
|
Application.Run(new UpdateManagerWindow());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
using global::System;
|
using global::System;
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.InteropServices;
|
using global::System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class ProxyConfigEditor : RadForm
|
||||||
{
|
{
|
||||||
public partial class ProxyConfigEditor : RadForm
|
|
||||||
{
|
|
||||||
private readonly ProxyConfiguration config = null;
|
private readonly ProxyConfiguration config = null;
|
||||||
|
|
||||||
public ProxyConfigEditor(ProxyConfiguration config)
|
public ProxyConfigEditor(ProxyConfiguration config)
|
||||||
@@ -34,5 +26,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
config.Username = radTextBoxControl_Username.Text.Trim();
|
config.Username = radTextBoxControl_Username.Text.Trim();
|
||||||
config.Password = radTextBoxControl_Password.Text;
|
config.Password = radTextBoxControl_Password.Text;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,19 @@
|
|||||||
using System;
|
using global::System.IO;
|
||||||
using System.Collections.Generic;
|
|
||||||
using global::System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
using Z.Collections.Extensions;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Pilz.Updating.Administration.Discord;
|
using Pilz.Updating.Administration.Discord;
|
||||||
using Telerik.WinControls.UI;
|
|
||||||
using Telerik.WinControls;
|
|
||||||
using Pilz.Updating.Administration.Packaging;
|
using Pilz.Updating.Administration.Packaging;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Telerik.WinControls;
|
||||||
|
using Telerik.WinControls.UI;
|
||||||
|
using Z.Collections.Extensions;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class UpdateManagerWindow
|
||||||
{
|
{
|
||||||
public partial class UpdateManagerWindow
|
|
||||||
{
|
|
||||||
|
|
||||||
// C o n s t a n t s
|
// C o n s t a n t s
|
||||||
|
|
||||||
@@ -79,7 +78,7 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
{
|
{
|
||||||
var oldProject = General.CurProject;
|
var oldProject = General.CurProject;
|
||||||
General.CurProject = new UpdateProject();
|
General.CurProject = new UpdateProject();
|
||||||
if (My.MyProject.Forms.UpdateServerInfoEditor.ShowDialog(this) == DialogResult.OK)
|
if (new UpdateServerInfoEditor().ShowDialog(this) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
curProjectFilePath = filePath;
|
curProjectFilePath = filePath;
|
||||||
SaveProject(curProjectFilePath);
|
SaveProject(curProjectFilePath);
|
||||||
@@ -146,13 +145,14 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
foreach (var pkgVersion in await manager.GetUpdatePackagesList())
|
foreach (var pkgVersion in await manager.GetUpdatePackagesList())
|
||||||
{
|
{
|
||||||
var name = manager.GetPackageDescription(pkgVersion).name;
|
var name = manager.GetPackageDescription(pkgVersion).name;
|
||||||
var cells = new List<string>();
|
var cells = new List<string>
|
||||||
|
{
|
||||||
cells.Add(string.IsNullOrEmpty(name) ? "<Kein Titel>" : name);
|
string.IsNullOrEmpty(name) ? "<Kein Titel>" : name,
|
||||||
cells.Add(pkgVersion.Version.ToString());
|
pkgVersion.Version.ToString(),
|
||||||
cells.Add(pkgVersion.Channel.ToString());
|
pkgVersion.Channel.ToString(),
|
||||||
cells.Add(pkgVersion.Build.ToString());
|
pkgVersion.Build.ToString(),
|
||||||
cells.Add("Ja");
|
"Ja"
|
||||||
|
};
|
||||||
|
|
||||||
var item = new ListViewDataItem(String.Empty, cells.ToArray())
|
var item = new ListViewDataItem(String.Empty, cells.ToArray())
|
||||||
{
|
{
|
||||||
@@ -304,7 +304,7 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
|
|
||||||
private async void ButtonItem_ProjectOptions_Click(object sender, EventArgs e)
|
private async void ButtonItem_ProjectOptions_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
My.MyProject.Forms.UpdateServerInfoEditor.ShowDialog(this);
|
new UpdateServerInfoEditor().ShowDialog(this);
|
||||||
await LoadManager();
|
await LoadManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
|
|
||||||
if (ofd_UpdateAdministration_UpdatePackage.ShowDialog(this) == DialogResult.OK)
|
if (ofd_UpdateAdministration_UpdatePackage.ShowDialog(this) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
if(await UploadPackage(ofd_UpdateAdministration_UpdatePackage.FileName))
|
if (await UploadPackage(ofd_UpdateAdministration_UpdatePackage.FileName))
|
||||||
await LoadPackageList();
|
await LoadPackageList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -535,9 +535,11 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
|
|
||||||
foreach (string fAddOn in packageManager.GetAllUpdateInstallerÁddOn())
|
foreach (string fAddOn in packageManager.GetAllUpdateInstallerÁddOn())
|
||||||
{
|
{
|
||||||
var cells = new List<string>();
|
var cells = new List<string>
|
||||||
cells.Add(Path.GetFileName(fAddOn));
|
{
|
||||||
cells.Add(Path.GetDirectoryName(fAddOn));
|
Path.GetFileName(fAddOn),
|
||||||
|
Path.GetDirectoryName(fAddOn)
|
||||||
|
};
|
||||||
|
|
||||||
var item = new ListViewDataItem(string.Empty, cells.ToArray())
|
var item = new ListViewDataItem(string.Empty, cells.ToArray())
|
||||||
{
|
{
|
||||||
@@ -721,5 +723,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
{
|
{
|
||||||
RemoveUpdateInstallerExtension();
|
RemoveUpdateInstallerExtension();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.GUI
|
namespace Pilz.Updating.Administration.GUI;
|
||||||
|
|
||||||
|
public partial class UpdateServerInfoEditor : RadForm
|
||||||
{
|
{
|
||||||
public partial class UpdateServerInfoEditor : RadForm
|
|
||||||
{
|
|
||||||
public UpdateServerInfoEditor()
|
public UpdateServerInfoEditor()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -37,5 +29,4 @@ namespace Pilz.Updating.Administration.GUI
|
|||||||
General.CurProject.UpdateServerConfig.Password = radTextBoxControl_Password.Text;
|
General.CurProject.UpdateServerConfig.Password = radTextBoxControl_Password.Text;
|
||||||
General.CurProject.UpdateServerConfig.UseProxyForWebDAV = radToggleSwitch_UseProxyForWebDAV.Value;
|
General.CurProject.UpdateServerConfig.UseProxyForWebDAV = radToggleSwitch_UseProxyForWebDAV.Value;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,15 +4,13 @@ using Discord.Net.WebSockets;
|
|||||||
using Discord.WebSocket;
|
using Discord.WebSocket;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.Discord
|
namespace Pilz.Updating.Administration.Discord;
|
||||||
|
|
||||||
|
public class DiscordBot
|
||||||
{
|
{
|
||||||
public class DiscordBot
|
|
||||||
{
|
|
||||||
public delegate void LoggedMsgEventHandler(object sender, string logmsg, bool isError);
|
public delegate void LoggedMsgEventHandler(object sender, string logmsg, bool isError);
|
||||||
|
|
||||||
public event EventHandler GotReady;
|
public event EventHandler GotReady;
|
||||||
@@ -36,9 +34,11 @@ namespace Pilz.Updating.Administration.Discord
|
|||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(Config.DiscordBotToken))
|
if (!string.IsNullOrEmpty(Config.DiscordBotToken))
|
||||||
{
|
{
|
||||||
var socketConfig = new DiscordSocketConfig();
|
var socketConfig = new DiscordSocketConfig
|
||||||
socketConfig.RestClientProvider = DefaultRestClientProvider.Create(useProxy: true);
|
{
|
||||||
socketConfig.WebSocketProvider = DefaultWebSocketProvider.Create(System.Net.WebRequest.DefaultWebProxy);
|
RestClientProvider = DefaultRestClientProvider.Create(useProxy: true),
|
||||||
|
WebSocketProvider = DefaultWebSocketProvider.Create(System.Net.WebRequest.DefaultWebProxy)
|
||||||
|
};
|
||||||
|
|
||||||
Client = new DiscordSocketClient(socketConfig);
|
Client = new DiscordSocketClient(socketConfig);
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ namespace Pilz.Updating.Administration.Discord
|
|||||||
msg = null;
|
msg = null;
|
||||||
|
|
||||||
if (channel != null)
|
if (channel != null)
|
||||||
await channel.SendMessageAsync(text:msg, embed:embed);
|
await channel.SendMessageAsync(text: msg, embed: embed);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Embed BuildEmbed(UpdatePackageInfo package, string appName, string message, bool addChangelog)
|
private Embed BuildEmbed(UpdatePackageInfo package, string appName, string message, bool addChangelog)
|
||||||
@@ -227,5 +227,4 @@ namespace Pilz.Updating.Administration.Discord
|
|||||||
|
|
||||||
return embed.Build();
|
return embed.Build();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,11 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.Discord
|
namespace Pilz.Updating.Administration.Discord;
|
||||||
|
|
||||||
|
public class DiscordBotConfig
|
||||||
{
|
{
|
||||||
public class DiscordBotConfig
|
|
||||||
{
|
|
||||||
public string DiscordBotToken { get; set; } = string.Empty;
|
public string DiscordBotToken { get; set; } = string.Empty;
|
||||||
public string DefaultAppName { get; set; } = string.Empty;
|
public string DefaultAppName { get; set; } = string.Empty;
|
||||||
public string UpdateNotificationRoll { get; set; } = string.Empty;
|
public string UpdateNotificationRoll { get; set; } = string.Empty;
|
||||||
@@ -30,5 +27,4 @@ namespace Pilz.Updating.Administration.Discord
|
|||||||
DefaultUpdateMessages[keys] = value;
|
DefaultUpdateMessages[keys] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
using System.Collections.Generic;
|
using global::Newtonsoft.Json.Linq;
|
||||||
using global::System.IO;
|
using global::System.IO;
|
||||||
using global::System.Reflection;
|
using global::System.Reflection;
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
using global::Newtonsoft.Json.Linq;
|
|
||||||
using Z.Collections.Extensions;
|
|
||||||
using Pilz.Updating.UpdateInstaller;
|
using Pilz.Updating.UpdateInstaller;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Z.Collections.Extensions;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.Packaging
|
namespace Pilz.Updating.Administration.Packaging;
|
||||||
|
|
||||||
|
internal class UpdatePackageManager
|
||||||
{
|
{
|
||||||
internal class UpdatePackageManager
|
|
||||||
{
|
|
||||||
|
|
||||||
// F i e l d s
|
// F i e l d s
|
||||||
|
|
||||||
@@ -103,5 +103,4 @@ namespace Pilz.Updating.Administration.Packaging
|
|||||||
{
|
{
|
||||||
template.UpdateInstallerAddOns.RemoveIfContains(path);
|
template.UpdateInstallerAddOns.RemoveIfContains(path);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
using global::System.IO;
|
using System.IO;
|
||||||
using global::System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using Pilz.Updating.UpdateInstaller;
|
using Pilz.Updating.UpdateInstaller;
|
||||||
using Z.IO.Extensions;
|
using Z.IO.Extensions;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.Packaging
|
namespace Pilz.Updating.Administration.Packaging;
|
||||||
|
|
||||||
|
public class UpdatePackagePackager
|
||||||
{
|
{
|
||||||
public class UpdatePackagePackager
|
|
||||||
{
|
|
||||||
public UpdatePackageTemplate UpdatePackageTemplate { get; set; }
|
public UpdatePackageTemplate UpdatePackageTemplate { get; set; }
|
||||||
|
|
||||||
public UpdatePackagePackager(UpdatePackageTemplate updatePackageTemplate)
|
public UpdatePackagePackager(UpdatePackageTemplate updatePackageTemplate)
|
||||||
@@ -48,5 +48,4 @@ namespace Pilz.Updating.Administration.Packaging
|
|||||||
// Delete temp directory
|
// Delete temp directory
|
||||||
packageDir.Delete(true);
|
packageDir.Delete(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration.Packaging
|
namespace Pilz.Updating.Administration.Packaging;
|
||||||
|
|
||||||
|
public class UpdatePackageTemplate
|
||||||
{
|
{
|
||||||
public class UpdatePackageTemplate
|
|
||||||
{
|
|
||||||
public string FilesToCopyPath { get; set; }
|
public string FilesToCopyPath { get; set; }
|
||||||
public List<string> UpdateInstallerAddOns { get; set; } = new List<string>();
|
public List<string> UpdateInstallerAddOns { get; set; } = [];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RootNamespace>Pilz.Updating.Administration</RootNamespace>
|
<RootNamespace>Pilz.Updating.Administration</RootNamespace>
|
||||||
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<AssemblyTitle>Pilz.Updating.Server</AssemblyTitle>
|
<AssemblyTitle>Pilz.Updating.Server</AssemblyTitle>
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
<DocumentationFile>Pilz.Updating.Administration.xml</DocumentationFile>
|
<DocumentationFile>Pilz.Updating.Administration.xml</DocumentationFile>
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591,CS0660,CS0661,CS0436</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591,CS0660,CS0661,CS0436</NoWarn>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DefineDebug>true</DefineDebug>
|
<DefineDebug>true</DefineDebug>
|
||||||
@@ -37,13 +36,12 @@
|
|||||||
<DefineConstants>TRACE;RelMono</DefineConstants>
|
<DefineConstants>TRACE;RelMono</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
|
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
|
||||||
<PackageReference Include="Pilz.Cryptography" Version="2.0.0" />
|
<PackageReference Include="Pilz.Cryptography" Version="2.0.1" />
|
||||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@@ -92,8 +90,8 @@
|
|||||||
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
|
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Discord.Net" Version="3.13.0" />
|
<PackageReference Include="Discord.Net" Version="3.15.2" />
|
||||||
<PackageReference Include="Markdig" Version="0.33.0" />
|
<PackageReference Include="Markdig" Version="0.37.0" />
|
||||||
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
|
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using global::System;
|
using global::System;
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.CompilerServices;
|
using global::System.Runtime.CompilerServices;
|
||||||
using global::System.Runtime.InteropServices;
|
using global::System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|||||||
@@ -1,18 +1,12 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Pilz.Cryptography;
|
using Pilz.Cryptography;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration
|
namespace Pilz.Updating.Administration;
|
||||||
|
|
||||||
|
public class ProxyConfiguration
|
||||||
{
|
{
|
||||||
public class ProxyConfiguration
|
|
||||||
{
|
|
||||||
public bool UseProxyAuth { get; set; }
|
public bool UseProxyAuth { get; set; }
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
[JsonProperty("PasswordV3")]
|
[JsonProperty("PasswordV3")]
|
||||||
public SecureString Password { get; set; }
|
public SecureString Password { get; set; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Pilz.Updating.UpdateInstaller
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
public static class PackageFileNameDefinations
|
||||||
{
|
{
|
||||||
public static class PackageFileNameDefinations
|
|
||||||
{
|
|
||||||
public const string ZIP_PACKAGE_FILENAME = "updatepackage.zip";
|
public const string ZIP_PACKAGE_FILENAME = "updatepackage.zip";
|
||||||
public const string ZIP_UPDATE_INSTALLER_ADDONS_DIRECTORY = "installer_addons";
|
public const string ZIP_UPDATE_INSTALLER_ADDONS_DIRECTORY = "installer_addons";
|
||||||
public const string ZIP_APP_DATA_FILES_DIRECTORY = "appdata";
|
public const string ZIP_APP_DATA_FILES_DIRECTORY = "appdata";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
namespace Pilz.Updating.UpdateInstaller
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
public static partial class UpdateInstallerAddOnNameDefinitions
|
||||||
{
|
{
|
||||||
public static partial class UpdateInstallerAddOnNameDefinitions
|
|
||||||
{
|
|
||||||
public const string UPDATE_INSTALLER_ADDON_NAMESPACE = "UpdateInstaller";
|
public const string UPDATE_INSTALLER_ADDON_NAMESPACE = "UpdateInstaller";
|
||||||
public const string UPDATE_INSTALLER_ADDON_TYPE = "AddOn";
|
public const string UPDATE_INSTALLER_ADDON_TYPE = "AddOn";
|
||||||
public const string UPDATE_INSTALLER_ADDON_METHOD = "Main";
|
public const string UPDATE_INSTALLER_ADDON_METHOD = "Main";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,11 @@
|
|||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using Pilz.Updating.Administration.Discord;
|
using Pilz.Updating.Administration.Discord;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration
|
namespace Pilz.Updating.Administration;
|
||||||
|
|
||||||
|
public class UpdateProject
|
||||||
{
|
{
|
||||||
public class UpdateProject
|
|
||||||
{
|
|
||||||
public UpdateServerConfig UpdateServerConfig { get; } = new UpdateServerConfig();
|
public UpdateServerConfig UpdateServerConfig { get; } = new UpdateServerConfig();
|
||||||
public DiscordBotConfig DiscordBotConfig { get; } = new DiscordBotConfig();
|
public DiscordBotConfig DiscordBotConfig { get; } = new DiscordBotConfig();
|
||||||
public ProxyConfiguration ProxyConfig { get; } = new ProxyConfiguration();
|
public ProxyConfiguration ProxyConfig { get; } = new ProxyConfiguration();
|
||||||
@@ -27,5 +22,4 @@ namespace Pilz.Updating.Administration
|
|||||||
{
|
{
|
||||||
File.WriteAllText(filePath, JObject.FromObject(this).ToString());
|
File.WriteAllText(filePath, JObject.FromObject(this).ToString());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,10 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Pilz.Cryptography;
|
using Pilz.Cryptography;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration
|
namespace Pilz.Updating.Administration;
|
||||||
|
|
||||||
|
public class UpdateServerConfig
|
||||||
{
|
{
|
||||||
public class UpdateServerConfig
|
|
||||||
{
|
|
||||||
public bool UseProxyForWebDAV { get; set; } = false;
|
public bool UseProxyForWebDAV { get; set; } = false;
|
||||||
public string ServerAdress { get; set; }
|
public string ServerAdress { get; set; }
|
||||||
public string PublicPackageBaseURL { get; set; }
|
public string PublicPackageBaseURL { get; set; }
|
||||||
@@ -18,5 +13,4 @@ namespace Pilz.Updating.Administration
|
|||||||
|
|
||||||
[JsonProperty("PasswordV3")]
|
[JsonProperty("PasswordV3")]
|
||||||
public SecureString Password { get; set; }
|
public SecureString Password { get; set; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
using global::System.IO;
|
using Microsoft.VisualBasic;
|
||||||
using global::Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using WebDav;
|
|
||||||
using System.Net;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using WebDav;
|
||||||
using static Microsoft.VisualBasic.CompilerServices.LikeOperator;
|
using static Microsoft.VisualBasic.CompilerServices.LikeOperator;
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Administration
|
namespace Pilz.Updating.Administration;
|
||||||
|
|
||||||
|
public class UpdateServerManager
|
||||||
{
|
{
|
||||||
public class UpdateServerManager
|
|
||||||
{
|
|
||||||
private const string PKG_SEARCHTEXT = "pkg*.*.*.*.zip";
|
private const string PKG_SEARCHTEXT = "pkg*.*.*.*.zip";
|
||||||
private const string PKG_FILENAME_TEMPLATE = "pkg{0}{1}.zip";
|
private const string PKG_FILENAME_TEMPLATE = "pkg{0}{1}.zip";
|
||||||
private const string PKG_FILENAME_ALPHADEFINITION = "a";
|
private const string PKG_FILENAME_ALPHADEFINITION = "a";
|
||||||
@@ -338,8 +338,7 @@ namespace Pilz.Updating.Administration
|
|||||||
{
|
{
|
||||||
var info = GetUpdatePackageInfo(version);
|
var info = GetUpdatePackageInfo(version);
|
||||||
|
|
||||||
if (info == null)
|
info ??= CreateUpdatePackageInfo(version);
|
||||||
info = CreateUpdatePackageInfo(version);
|
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
@@ -401,5 +400,4 @@ namespace Pilz.Updating.Administration
|
|||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
|
||||||
// Laufzeitversion:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
|
||||||
// der Code erneut generiert wird.
|
|
||||||
// </auto-generated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<MySubMain>true</MySubMain>
|
|
||||||
<MainForm>Form1</MainForm>
|
|
||||||
<SingleInstance>false</SingleInstance>
|
|
||||||
<ShutdownMode>0</ShutdownMode>
|
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
|
||||||
<ApplicationType>0</ApplicationType>
|
|
||||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
|
||||||
</MyApplicationData>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
using global::System;
|
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.InteropServices;
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird.
|
|
||||||
[assembly: Guid("f26b0b17-862f-42e2-afd5-340ef6761192")]
|
|
||||||
|
|
||||||
@@ -1,192 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
namespace Pilz.Updating.Client.GUI.My
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia */
|
|
||||||
internal partial class MyApplication : Microsoft.VisualBasic.ApplicationServices.ApplicationBase
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyComputer : Microsoft.VisualBasic.Devices.Computer
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyComputer() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[HideModuleName()]
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
internal static class MyProject
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Computer")]
|
|
||||||
internal static MyComputer Computer
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_ComputerObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyComputer> m_ComputerObjectProvider = new ThreadSafeObjectProvider<MyComputer>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Application")]
|
|
||||||
internal static MyApplication Application
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_AppObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyApplication> m_AppObjectProvider = new ThreadSafeObjectProvider<MyApplication>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.User")]
|
|
||||||
internal static Microsoft.VisualBasic.ApplicationServices.User User
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_UserObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User> m_UserObjectProvider = new ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User>();
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.WebServices")]
|
|
||||||
internal static MyWebServices WebServices
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyWebServicesObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")]
|
|
||||||
internal sealed class MyWebServices
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyWebServices);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T instance) where T : new()
|
|
||||||
{
|
|
||||||
if (instance == null)
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance)
|
|
||||||
{
|
|
||||||
instance = default;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyWebServices() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyWebServices> m_MyWebServicesObjectProvider = new ThreadSafeObjectProvider<MyWebServices>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.InteropServices.ComVisible(false)]
|
|
||||||
internal sealed class ThreadSafeObjectProvider<T> where T : new()
|
|
||||||
{
|
|
||||||
internal T GetInstance
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var Value = m_Context.Value;
|
|
||||||
if (Value == null)
|
|
||||||
{
|
|
||||||
Value = new T();
|
|
||||||
m_Context.Value = Value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Value;
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped ElseDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public ThreadSafeObjectProvider() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
private readonly Microsoft.VisualBasic.MyServices.Internal.ContextValue<T> m_Context = new Microsoft.VisualBasic.MyServices.Internal.ContextValue<T>();
|
|
||||||
/* TODO ERROR: Skipped ElseDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
// See Compiler::LoadXmlSolutionExtension
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Xml.Linq;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Client.GUI.My
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal sealed class InternalXmlHelper
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private InternalXmlHelper()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_Value(IEnumerable<XElement> source)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return item.Value;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_Value(IEnumerable<XElement> source, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.Value = value;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(IEnumerable<XElement> source, XName name)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return Conversions.ToString(item.Attribute(name));
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(IEnumerable<XElement> source, XName name, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.SetAttributeValue(name, value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(XElement source, XName name)
|
|
||||||
{
|
|
||||||
return Conversions.ToString(source.Attribute(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(XElement source, XName name, string value)
|
|
||||||
{
|
|
||||||
source.SetAttributeValue(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateAttribute(XName name, object value)
|
|
||||||
{
|
|
||||||
if (value is null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new XAttribute(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateNamespaceAttribute(XName name, XNamespace ns)
|
|
||||||
{
|
|
||||||
var a = new XAttribute(name, ns.NamespaceName);
|
|
||||||
a.AddAnnotation(ns);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static object RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, object obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IEnumerable elems = obj as IEnumerable;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elems);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static IEnumerable RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, IEnumerable obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
IEnumerable<XElement> elems = obj as IEnumerable<XElement>;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return elems.Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessXElement);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj.Cast<object>().Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private sealed class RemoveNamespaceAttributesClosure
|
|
||||||
{
|
|
||||||
private readonly string[] m_inScopePrefixes;
|
|
||||||
private readonly XNamespace[] m_inScopeNs;
|
|
||||||
private readonly List<XAttribute> m_attributes;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal RemoveNamespaceAttributesClosure(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes)
|
|
||||||
{
|
|
||||||
m_inScopePrefixes = inScopePrefixes;
|
|
||||||
m_inScopeNs = inScopeNs;
|
|
||||||
m_attributes = attributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal XElement ProcessXElement(XElement elem)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal object ProcessObject(object obj)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XElement RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, XElement e)
|
|
||||||
{
|
|
||||||
if (e is object)
|
|
||||||
{
|
|
||||||
var a = e.FirstAttribute;
|
|
||||||
while (a is object)
|
|
||||||
{
|
|
||||||
var nextA = a.NextAttribute;
|
|
||||||
if (a.IsNamespaceDeclaration)
|
|
||||||
{
|
|
||||||
var ns = a.Annotation<XNamespace>();
|
|
||||||
string prefix = a.Name.LocalName;
|
|
||||||
if (ns is object)
|
|
||||||
{
|
|
||||||
if (inScopePrefixes is object && inScopeNs is object)
|
|
||||||
{
|
|
||||||
int lastIndex = inScopePrefixes.Length - 1;
|
|
||||||
for (int i = 0, loopTo = lastIndex; i <= loopTo; i++)
|
|
||||||
{
|
|
||||||
string currentInScopePrefix = inScopePrefixes[i];
|
|
||||||
var currentInScopeNs = inScopeNs[i];
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is not in scope
|
|
||||||
// Now check whether it's going to be in scope because it is in the attributes list
|
|
||||||
|
|
||||||
if (attributes is object)
|
|
||||||
{
|
|
||||||
int lastIndex = attributes.Count - 1;
|
|
||||||
for (int i = 0, loopTo1 = lastIndex; i <= loopTo1; i++)
|
|
||||||
{
|
|
||||||
var currentA = attributes[i];
|
|
||||||
string currentInScopePrefix = currentA.Name.LocalName;
|
|
||||||
var currentInScopeNs = currentA.Annotation<XNamespace>();
|
|
||||||
if (currentInScopeNs is object)
|
|
||||||
{
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is definitely not in scope
|
|
||||||
a.Remove();
|
|
||||||
// namespace is not defined either. Add this attributes list
|
|
||||||
attributes.Add(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a = nextA;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Microsoft.VisualBasic
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Module | AttributeTargets.Assembly, Inherited = false)]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
internal sealed class Embedded : Attribute
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
</root>
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
|
||||||
// Laufzeitversion:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
|
||||||
// der Code erneut generiert wird.
|
|
||||||
// </auto-generated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
using System.Diagnostics;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Client.GUI.My
|
|
||||||
{
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal sealed partial class MySettings : System.Configuration.ApplicationSettingsBase
|
|
||||||
{
|
|
||||||
private static MySettings defaultInstance = (MySettings)Synchronized(new MySettings());
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped RegionDirectiveTrivia *//* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia *//* TODO ERROR: Skipped EndRegionDirectiveTrivia */
|
|
||||||
public static MySettings Default
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
return defaultInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Pilz.Updating.Client.GUI.My
|
|
||||||
{
|
|
||||||
[HideModuleName()]
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
internal static class MySettingsProperty
|
|
||||||
{
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Settings")]
|
|
||||||
internal static MySettings Settings
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return MySettings.Default;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
|
||||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
|
||||||
<Profiles>
|
|
||||||
<Profile Name="(Default)" />
|
|
||||||
</Profiles>
|
|
||||||
<Settings />
|
|
||||||
</SettingsFile>
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<StartupObject />
|
|
||||||
<RootNamespace>SM64_ROM_Manager.Updating.Client.GUI</RootNamespace>
|
<RootNamespace>SM64_ROM_Manager.Updating.Client.GUI</RootNamespace>
|
||||||
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
@@ -38,7 +37,6 @@
|
|||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -46,9 +44,6 @@
|
|||||||
<PackageReference Include="Pilz.IO" Version="2.0.0" />
|
<PackageReference Include="Pilz.IO" Version="2.0.0" />
|
||||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||||
<PackageReference Include="UI.for.WinForms.AllControls.Net60">
|
|
||||||
<Version>2023.1.117</Version>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Import Include="Microsoft.VisualBasic" />
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
@@ -83,20 +78,11 @@
|
|||||||
<DependentUpon>UpdatesAvailableDialog.cs</DependentUpon>
|
<DependentUpon>UpdatesAvailableDialog.cs</DependentUpon>
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="My Project\Application.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Application.myapp</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="Resources.Designer.cs">
|
<Compile Update="Resources.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="My Project\Settings.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Settings.settings</DependentUpon>
|
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="UpdatingClientGuiLangRes.Designer.cs">
|
<Compile Update="UpdatingClientGuiLangRes.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
@@ -137,17 +123,6 @@
|
|||||||
<LastGenOutput>UpdatingClientGuiLangRes.Designer.cs</LastGenOutput>
|
<LastGenOutput>UpdatingClientGuiLangRes.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<None Include="My Project\Application.myapp">
|
|
||||||
<Generator>MyApplicationCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Application.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<None Include="My Project\Settings.settings">
|
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
|
||||||
<CustomToolNamespace>SM64_ROM_Manager.Updating.Client.GUI.My</CustomToolNamespace>
|
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Pilz.Updating.Client\Pilz.Updating.Client.csproj" />
|
<ProjectReference Include="..\Pilz.Updating.Client\Pilz.Updating.Client.csproj" />
|
||||||
<ProjectReference Include="..\Pilz.Updating.GUIBase\Pilz.Updating.GUIBase.csproj" />
|
<ProjectReference Include="..\Pilz.Updating.GUIBase\Pilz.Updating.GUIBase.csproj" />
|
||||||
@@ -155,8 +130,10 @@
|
|||||||
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
|
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Markdig" Version="0.33.0" />
|
<PackageReference Include="Markdig" Version="0.37.0" />
|
||||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
|
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
|
||||||
|
<PackageReference Include="UI.for.WinForms.Common" Version="2024.2.514" />
|
||||||
|
<PackageReference Include="UI.for.WinForms.RichTextEditor" Version="2024.2.514" />
|
||||||
<PackageReference Include="Westermo.HtmlRenderer.WinForms" Version="1.6.0" />
|
<PackageReference Include="Westermo.HtmlRenderer.WinForms" Version="1.6.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
namespace Pilz.Updating.Client.GUI
|
namespace Pilz.Updating.Client.GUI;
|
||||||
|
|
||||||
|
public partial class SimpleActionDialog
|
||||||
{
|
{
|
||||||
public partial class SimpleActionDialog
|
|
||||||
{
|
|
||||||
public SimpleActionDialog()
|
public SimpleActionDialog()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -25,5 +25,4 @@
|
|||||||
radWaitingBar1.BringToFront();
|
radWaitingBar1.BringToFront();
|
||||||
radWaitingBar1.StartWaiting();
|
radWaitingBar1.StartWaiting();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,16 @@
|
|||||||
using System.ComponentModel;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
using System.Drawing;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
using System;
|
using System;
|
||||||
using Telerik.WinControls;
|
using System.ComponentModel;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Telerik.WinControls;
|
||||||
|
|
||||||
namespace Pilz.Updating.Client.GUI
|
namespace Pilz.Updating.Client.GUI;
|
||||||
|
|
||||||
|
public class UpdateClientGUI
|
||||||
{
|
{
|
||||||
public class UpdateClientGUI
|
|
||||||
{
|
|
||||||
|
|
||||||
// F i e l d s
|
// F i e l d s
|
||||||
|
|
||||||
@@ -142,5 +141,4 @@ namespace Pilz.Updating.Client.GUI
|
|||||||
RadMessageBox.Show(UpdatingClientGuiLangRes.MsgBox_NoUpdatesFound, UpdatingClientGuiLangRes.MsgBox_NoUpdatesFound_Titel, MessageBoxButtons.OK, RadMessageIcon.Info);
|
RadMessageBox.Show(UpdatingClientGuiLangRes.MsgBox_NoUpdatesFound, UpdatingClientGuiLangRes.MsgBox_NoUpdatesFound_Titel, MessageBoxButtons.OK, RadMessageIcon.Info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
using System.Drawing;
|
using Pilz.Updating.GUIBase;
|
||||||
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Pilz.Updating.GUIBase;
|
|
||||||
using Telerik.WinControls;
|
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace Pilz.Updating.Client.GUI
|
namespace Pilz.Updating.Client.GUI;
|
||||||
|
|
||||||
|
internal partial class UpdatesAvailableDialog
|
||||||
{
|
{
|
||||||
internal partial class UpdatesAvailableDialog
|
|
||||||
{
|
|
||||||
public UpdatesAvailableDialog(Image appIcon, string curVersion, string curChannel, string curBuild, string newVersion, string newChannel, string newBuild, UpdateNotes updateNotes, bool installAsAdmin)
|
public UpdatesAvailableDialog(Image appIcon, string curVersion, string curChannel, string curBuild, string newVersion, string newChannel, string newBuild, UpdateNotes updateNotes, bool installAsAdmin)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -53,5 +52,4 @@ namespace Pilz.Updating.Client.GUI
|
|||||||
panel_ChangelogPanel.Controls.Add(updateNotesControl);
|
panel_ChangelogPanel.Controls.Add(updateNotesControl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RootNamespace>Pilz.Updating</RootNamespace>
|
<RootNamespace>Pilz.Updating</RootNamespace>
|
||||||
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<AssemblyTitle>Pilz.Updating.Client</AssemblyTitle>
|
<AssemblyTitle>Pilz.Updating.Client</AssemblyTitle>
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
<DocumentationFile>Pilz.Updating.Client.xml</DocumentationFile>
|
<DocumentationFile>Pilz.Updating.Client.xml</DocumentationFile>
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591,CS0660,CS0661,CS0436</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591,CS0660,CS0661,CS0436</NoWarn>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DefineDebug>true</DefineDebug>
|
<DefineDebug>true</DefineDebug>
|
||||||
@@ -37,7 +36,6 @@
|
|||||||
<DefineConstants>TRACE;RelMono</DefineConstants>
|
<DefineConstants>TRACE;RelMono</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using global::System;
|
using global::System;
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.InteropServices;
|
using global::System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +1,18 @@
|
|||||||
using System;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.IO.Pipes;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Reflection;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
using Pilz.Updating.UpdateInstaller;
|
|
||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public class UpdateClient
|
||||||
{
|
{
|
||||||
public class UpdateClient
|
|
||||||
{
|
|
||||||
|
|
||||||
// E b v e n t s
|
// E b v e n t s
|
||||||
|
|
||||||
@@ -43,7 +38,7 @@ namespace Pilz.Updating
|
|||||||
|
|
||||||
// F i e l d s
|
// F i e l d s
|
||||||
|
|
||||||
private readonly Dictionary<UpdatePackageInfo, string> dicPackagePaths = new Dictionary<UpdatePackageInfo, string>();
|
private readonly Dictionary<UpdatePackageInfo, string> dicPackagePaths = [];
|
||||||
private UpdateStatus curDownloadingStatus = UpdateStatus.Waiting;
|
private UpdateStatus curDownloadingStatus = UpdateStatus.Waiting;
|
||||||
|
|
||||||
// P r o p e r t i e s
|
// P r o p e r t i e s
|
||||||
@@ -263,5 +258,4 @@ namespace Pilz.Updating
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public enum UpdateStatus
|
||||||
{
|
{
|
||||||
public enum UpdateStatus
|
|
||||||
{
|
|
||||||
Waiting,
|
Waiting,
|
||||||
Searching,
|
Searching,
|
||||||
DownloadingPackage,
|
DownloadingPackage,
|
||||||
DownloadingInstaller,
|
DownloadingInstaller,
|
||||||
StartingInstaller
|
StartingInstaller
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System.Drawing;
|
||||||
using global::System.Drawing;
|
using System.Runtime.InteropServices;
|
||||||
using global::System.Runtime.InteropServices;
|
using System;
|
||||||
using global::System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Pilz.Updating.GUIBase
|
namespace Pilz.Updating.GUIBase;
|
||||||
|
|
||||||
|
internal static class BaseFeatures
|
||||||
{
|
{
|
||||||
internal static class BaseFeatures
|
|
||||||
{
|
|
||||||
[DllImport("user32")]
|
[DllImport("user32")]
|
||||||
private static extern uint SendMessage(IntPtr hWnd, uint msg, uint wParam, uint lParam);
|
private static extern uint SendMessage(IntPtr hWnd, uint msg, uint wParam, uint lParam);
|
||||||
|
|
||||||
@@ -35,9 +35,11 @@ namespace Pilz.Updating.GUIBase
|
|||||||
|
|
||||||
// Make the button. For some reason, it must
|
// Make the button. For some reason, it must
|
||||||
// have text or the UAC shield won't appear.
|
// have text or the UAC shield won't appear.
|
||||||
var btn = new Button();
|
var btn = new Button
|
||||||
btn.Text = " ";
|
{
|
||||||
btn.Size = new Size(WID, HGT);
|
Text = " ",
|
||||||
|
Size = new Size(WID, HGT)
|
||||||
|
};
|
||||||
AddShieldToButton(btn);
|
AddShieldToButton(btn);
|
||||||
|
|
||||||
// Draw the button onto a bitmap.
|
// Draw the button onto a bitmap.
|
||||||
@@ -109,5 +111,4 @@ namespace Pilz.Updating.GUIBase
|
|||||||
// Return the shield.
|
// Return the shield.
|
||||||
return shield_bm;
|
return shield_bm;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Runtime Version:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<MySubMain>false</MySubMain>
|
|
||||||
<SingleInstance>false</SingleInstance>
|
|
||||||
<ShutdownMode>0</ShutdownMode>
|
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
|
||||||
<ApplicationType>1</ApplicationType>
|
|
||||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
|
||||||
</MyApplicationData>
|
|
||||||
@@ -1,192 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
namespace Pilz.Updating.GUIBase.My
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia */
|
|
||||||
internal partial class MyApplication : Microsoft.VisualBasic.ApplicationServices.ApplicationBase
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyComputer : Microsoft.VisualBasic.Devices.Computer
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyComputer() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[HideModuleName()]
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
internal static class MyProject
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Computer")]
|
|
||||||
internal static MyComputer Computer
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_ComputerObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyComputer> m_ComputerObjectProvider = new ThreadSafeObjectProvider<MyComputer>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Application")]
|
|
||||||
internal static MyApplication Application
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_AppObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyApplication> m_AppObjectProvider = new ThreadSafeObjectProvider<MyApplication>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.User")]
|
|
||||||
internal static Microsoft.VisualBasic.ApplicationServices.User User
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_UserObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User> m_UserObjectProvider = new ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User>();
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.WebServices")]
|
|
||||||
internal static MyWebServices WebServices
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyWebServicesObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")]
|
|
||||||
internal sealed class MyWebServices
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyWebServices);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T instance) where T : new()
|
|
||||||
{
|
|
||||||
if (instance == null)
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance)
|
|
||||||
{
|
|
||||||
instance = default;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyWebServices() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyWebServices> m_MyWebServicesObjectProvider = new ThreadSafeObjectProvider<MyWebServices>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.InteropServices.ComVisible(false)]
|
|
||||||
internal sealed class ThreadSafeObjectProvider<T> where T : new()
|
|
||||||
{
|
|
||||||
internal T GetInstance
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var Value = m_Context.Value;
|
|
||||||
if (Value == null)
|
|
||||||
{
|
|
||||||
Value = new T();
|
|
||||||
m_Context.Value = Value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Value;
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped ElseDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public ThreadSafeObjectProvider() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
private readonly Microsoft.VisualBasic.MyServices.Internal.ContextValue<T> m_Context = new Microsoft.VisualBasic.MyServices.Internal.ContextValue<T>();
|
|
||||||
/* TODO ERROR: Skipped ElseDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
// See Compiler::LoadXmlSolutionExtension
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Xml.Linq;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.GUIBase.My
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal sealed class InternalXmlHelper
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private InternalXmlHelper()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_Value(IEnumerable<XElement> source)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return item.Value;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_Value(IEnumerable<XElement> source, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.Value = value;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(IEnumerable<XElement> source, XName name)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return Conversions.ToString(item.Attribute(name));
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(IEnumerable<XElement> source, XName name, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.SetAttributeValue(name, value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(XElement source, XName name)
|
|
||||||
{
|
|
||||||
return Conversions.ToString(source.Attribute(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(XElement source, XName name, string value)
|
|
||||||
{
|
|
||||||
source.SetAttributeValue(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateAttribute(XName name, object value)
|
|
||||||
{
|
|
||||||
if (value is null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new XAttribute(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateNamespaceAttribute(XName name, XNamespace ns)
|
|
||||||
{
|
|
||||||
var a = new XAttribute(name, ns.NamespaceName);
|
|
||||||
a.AddAnnotation(ns);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static object RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, object obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IEnumerable elems = obj as IEnumerable;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elems);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static IEnumerable RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, IEnumerable obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
IEnumerable<XElement> elems = obj as IEnumerable<XElement>;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return elems.Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessXElement);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj.Cast<object>().Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private sealed class RemoveNamespaceAttributesClosure
|
|
||||||
{
|
|
||||||
private readonly string[] m_inScopePrefixes;
|
|
||||||
private readonly XNamespace[] m_inScopeNs;
|
|
||||||
private readonly List<XAttribute> m_attributes;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal RemoveNamespaceAttributesClosure(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes)
|
|
||||||
{
|
|
||||||
m_inScopePrefixes = inScopePrefixes;
|
|
||||||
m_inScopeNs = inScopeNs;
|
|
||||||
m_attributes = attributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal XElement ProcessXElement(XElement elem)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal object ProcessObject(object obj)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XElement RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, XElement e)
|
|
||||||
{
|
|
||||||
if (e is object)
|
|
||||||
{
|
|
||||||
var a = e.FirstAttribute;
|
|
||||||
while (a is object)
|
|
||||||
{
|
|
||||||
var nextA = a.NextAttribute;
|
|
||||||
if (a.IsNamespaceDeclaration)
|
|
||||||
{
|
|
||||||
var ns = a.Annotation<XNamespace>();
|
|
||||||
string prefix = a.Name.LocalName;
|
|
||||||
if (ns is object)
|
|
||||||
{
|
|
||||||
if (inScopePrefixes is object && inScopeNs is object)
|
|
||||||
{
|
|
||||||
int lastIndex = inScopePrefixes.Length - 1;
|
|
||||||
for (int i = 0, loopTo = lastIndex; i <= loopTo; i++)
|
|
||||||
{
|
|
||||||
string currentInScopePrefix = inScopePrefixes[i];
|
|
||||||
var currentInScopeNs = inScopeNs[i];
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is not in scope
|
|
||||||
// Now check whether it's going to be in scope because it is in the attributes list
|
|
||||||
|
|
||||||
if (attributes is object)
|
|
||||||
{
|
|
||||||
int lastIndex = attributes.Count - 1;
|
|
||||||
for (int i = 0, loopTo1 = lastIndex; i <= loopTo1; i++)
|
|
||||||
{
|
|
||||||
var currentA = attributes[i];
|
|
||||||
string currentInScopePrefix = currentA.Name.LocalName;
|
|
||||||
var currentInScopeNs = currentA.Annotation<XNamespace>();
|
|
||||||
if (currentInScopeNs is object)
|
|
||||||
{
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is definitely not in scope
|
|
||||||
a.Remove();
|
|
||||||
// namespace is not defined either. Add this attributes list
|
|
||||||
attributes.Add(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a = nextA;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Microsoft.VisualBasic
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Module | AttributeTargets.Assembly, Inherited = false)]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
internal sealed class Embedded : Attribute
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
</root>
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RootNamespace>Pilz.Updating.GUIBase</RootNamespace>
|
<RootNamespace>Pilz.Updating.GUIBase</RootNamespace>
|
||||||
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<AssemblyTitle>Pilz.Updating.GUIBase</AssemblyTitle>
|
<AssemblyTitle>Pilz.Updating.GUIBase</AssemblyTitle>
|
||||||
@@ -36,7 +36,6 @@
|
|||||||
<DefineConstants>TRACE;RelMono</DefineConstants>
|
<DefineConstants>TRACE;RelMono</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -56,10 +55,6 @@
|
|||||||
<Import Include="System.Threading.Tasks" />
|
<Import Include="System.Threading.Tasks" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="My Project\Application.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Application.myapp</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="Properties\Resources.Designer.cs">
|
<Compile Update="Properties\Resources.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
@@ -80,10 +75,6 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="My Project\Application.myapp">
|
|
||||||
<Generator>MyApplicationCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Application.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<CustomToolNamespace>Pilz.Updating.GUIBase.My</CustomToolNamespace>
|
<CustomToolNamespace>Pilz.Updating.GUIBase.My</CustomToolNamespace>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using global::System;
|
using global::System;
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.CompilerServices;
|
using global::System.Runtime.CompilerServices;
|
||||||
using global::System.Runtime.InteropServices;
|
using global::System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
using System;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
|
|
||||||
|
public class UpdateInstaller
|
||||||
{
|
{
|
||||||
public class UpdateInstaller
|
|
||||||
{
|
|
||||||
// E v e n t s
|
// E v e n t s
|
||||||
|
|
||||||
public delegate void UpdateInstallerEventHandler(object sender, UpdateInstallerEventArgs e);
|
public delegate void UpdateInstallerEventHandler(object sender, UpdateInstallerEventArgs e);
|
||||||
@@ -169,5 +164,4 @@ namespace Pilz.Updating.UpdateInstaller.Lib
|
|||||||
{
|
{
|
||||||
Directory.Delete(Configuration.PackagePath, true);
|
Directory.Delete(Configuration.PackagePath, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,11 @@
|
|||||||
using System;
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
public class UpdateInstallerEventArgs : EventArgs
|
||||||
{
|
{
|
||||||
public class UpdateInstallerEventArgs : EventArgs
|
|
||||||
{
|
|
||||||
public UpdateInstaller UpdateInstaller { get; init; }
|
public UpdateInstaller UpdateInstaller { get; init; }
|
||||||
|
|
||||||
public UpdateInstallerEventArgs(UpdateInstaller updateInstaller)
|
public UpdateInstallerEventArgs(UpdateInstaller updateInstaller)
|
||||||
{
|
{
|
||||||
UpdateInstaller = updateInstaller;
|
UpdateInstaller = updateInstaller;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
|
|
||||||
|
public enum UpdateInstallerStatus
|
||||||
{
|
{
|
||||||
public enum UpdateInstallerStatus
|
|
||||||
{
|
|
||||||
Waiting,
|
Waiting,
|
||||||
Extracting,
|
Extracting,
|
||||||
CopyingFiles,
|
CopyingFiles,
|
||||||
RemovingFiles,
|
RemovingFiles,
|
||||||
Done
|
Done
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,11 @@
|
|||||||
using System;
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
public class UpdateInstallerStatusChangedEventArgs : EventArgs
|
||||||
{
|
{
|
||||||
public class UpdateInstallerStatusChangedEventArgs : EventArgs
|
|
||||||
{
|
|
||||||
public UpdateInstallerStatus NewStatus { get; private set; }
|
public UpdateInstallerStatus NewStatus { get; private set; }
|
||||||
|
|
||||||
public UpdateInstallerStatusChangedEventArgs(UpdateInstallerStatus newStatus) : base()
|
public UpdateInstallerStatusChangedEventArgs(UpdateInstallerStatus newStatus) : base()
|
||||||
{
|
{
|
||||||
NewStatus = newStatus;
|
NewStatus = newStatus;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,10 @@
|
|||||||
using System;
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
public enum UpdateInstallerStep
|
||||||
{
|
{
|
||||||
public enum UpdateInstallerStep
|
|
||||||
{
|
|
||||||
Startup,
|
Startup,
|
||||||
ExtractPackage,
|
ExtractPackage,
|
||||||
CopyFiles,
|
CopyFiles,
|
||||||
DeletePackage,
|
DeletePackage,
|
||||||
Finish
|
Finish
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
using System;
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
public class UpdateInstallerStepEventArgs : UpdateInstallerEventArgs
|
||||||
{
|
{
|
||||||
public class UpdateInstallerStepEventArgs : UpdateInstallerEventArgs
|
|
||||||
{
|
|
||||||
public UpdateInstallerStep Step { get; init; }
|
public UpdateInstallerStep Step { get; init; }
|
||||||
public UpdateInstallerStepState State { get; init; }
|
public UpdateInstallerStepState State { get; init; }
|
||||||
|
|
||||||
@@ -16,5 +10,4 @@ namespace Pilz.Updating.UpdateInstaller.Lib
|
|||||||
Step = step;
|
Step = step;
|
||||||
State = state;
|
State = state;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
using System;
|
namespace Pilz.Updating.UpdateInstaller.Lib;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.Lib
|
public enum UpdateInstallerStepState
|
||||||
{
|
{
|
||||||
public enum UpdateInstallerStepState
|
|
||||||
{
|
|
||||||
Default,
|
Default,
|
||||||
PreEvent,
|
PreEvent,
|
||||||
PostEvent
|
PostEvent
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
using System.IO;
|
using Pilz.Plugins;
|
||||||
using System.Reflection;
|
using System.IO;
|
||||||
using Pilz.Plugins;
|
|
||||||
using System.Configuration;
|
|
||||||
using Z.Reflection.Extensions;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
internal static class General
|
||||||
{
|
{
|
||||||
internal static class General
|
|
||||||
{
|
|
||||||
private static string p = null;
|
private static string p = null;
|
||||||
|
|
||||||
public static string MyAppPath
|
public static string MyAppPath
|
||||||
@@ -33,5 +30,4 @@ namespace Pilz.Updating.UpdateInstaller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,16 @@
|
|||||||
using System;
|
using Pilz.Updating.UpdateInstaller.Lib;
|
||||||
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Telerik.WinControls;
|
using Telerik.WinControls;
|
||||||
using Telerik.WinControls.Themes;
|
using Telerik.WinControls.Themes;
|
||||||
using Pilz.Updating.UpdateInstaller.Lib;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
public partial class Main
|
||||||
{
|
{
|
||||||
public partial class Main
|
|
||||||
{
|
|
||||||
// C o n s t r u c t o r s
|
// C o n s t r u c t o r s
|
||||||
|
|
||||||
public Main()
|
public Main()
|
||||||
@@ -22,8 +21,8 @@ namespace Pilz.Updating.UpdateInstaller
|
|||||||
this.FormClosing += Main_FormClosing;
|
this.FormClosing += Main_FormClosing;
|
||||||
|
|
||||||
// Get arguments
|
// Get arguments
|
||||||
var args = My.MyProject.Application.CommandLineArgs.ToArray();
|
var args = Environment.GetCommandLineArgs().Skip(1).ToArray();
|
||||||
if (args.Any())
|
if (args.Length != 0)
|
||||||
{
|
{
|
||||||
// Load config
|
// Load config
|
||||||
installer = new Lib.UpdateInstaller(UpdateInstallerConfig.Parse(args[0]));
|
installer = new Lib.UpdateInstaller(UpdateInstallerConfig.Parse(args[0]));
|
||||||
@@ -145,5 +144,4 @@ namespace Pilz.Updating.UpdateInstaller
|
|||||||
{
|
{
|
||||||
base.Invoke(new Action(() => SetStatus(e.NewStatus)));
|
base.Invoke(new Action(() => SetStatus(e.NewStatus)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
|
||||||
// Laufzeitversion:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
|
||||||
// der Code erneut generiert wird.
|
|
||||||
// </auto-generated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.My
|
|
||||||
{
|
|
||||||
|
|
||||||
// HINWEIS: Diese Datei wird automatisch generiert und darf nicht direkt bearbeitet werden. Wenn Sie Änderungen vornehmen möchten
|
|
||||||
// oder in dieser Datei Buildfehler auftreten, wechseln Sie zum Projekt-Designer.
|
|
||||||
// (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
|
|
||||||
// Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
|
|
||||||
//
|
|
||||||
internal partial class MyApplication
|
|
||||||
{
|
|
||||||
[DebuggerStepThrough()]
|
|
||||||
public MyApplication() : base(Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
|
||||||
{
|
|
||||||
IsSingleInstance = false;
|
|
||||||
EnableVisualStyles = true;
|
|
||||||
SaveMySettingsOnExit = true;
|
|
||||||
ShutdownStyle = Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterAllFormsClose;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerStepThrough()]
|
|
||||||
protected override void OnCreateMainForm()
|
|
||||||
{
|
|
||||||
MainForm = MyProject.Forms.Main;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<MySubMain>true</MySubMain>
|
|
||||||
<MainForm>Main</MainForm>
|
|
||||||
<SingleInstance>false</SingleInstance>
|
|
||||||
<ShutdownMode>1</ShutdownMode>
|
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
|
||||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
|
||||||
</MyApplicationData>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
using global::System;
|
|
||||||
using global::System.ComponentModel;
|
|
||||||
using global::System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.My
|
|
||||||
{
|
|
||||||
internal static partial class MyProject
|
|
||||||
{
|
|
||||||
internal partial class MyForms
|
|
||||||
{
|
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
||||||
public Main m_Main;
|
|
||||||
|
|
||||||
public Main Main
|
|
||||||
{
|
|
||||||
[DebuggerHidden]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
m_Main = MyForms.Create__Instance__(m_Main);
|
|
||||||
return m_Main;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden]
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value == m_Main)
|
|
||||||
return;
|
|
||||||
if (value is object)
|
|
||||||
throw new ArgumentException("Property can only be set to Nothing");
|
|
||||||
Dispose__Instance__(ref m_Main);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,305 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.My
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyApplication : Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[STAThread()]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal static void Main(string[] Args)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Application.SetCompatibleTextRenderingDefault(UseCompatibleTextRendering);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
MyProject.Application.Run(Args);
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyComputer : Microsoft.VisualBasic.Devices.Computer
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyComputer() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[HideModuleName()]
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
internal static partial class MyProject
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Computer")]
|
|
||||||
internal static MyComputer Computer
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_ComputerObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyComputer> m_ComputerObjectProvider = new ThreadSafeObjectProvider<MyComputer>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Application")]
|
|
||||||
internal static MyApplication Application
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_AppObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyApplication> m_AppObjectProvider = new ThreadSafeObjectProvider<MyApplication>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.User")]
|
|
||||||
internal static Microsoft.VisualBasic.ApplicationServices.User User
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_UserObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User> m_UserObjectProvider = new ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User>();
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Forms")]
|
|
||||||
internal static MyForms Forms
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyFormsObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Windows.Forms.Form", "Create__Instance__", "Dispose__Instance__", "My.MyProject.Forms")]
|
|
||||||
internal sealed partial class MyForms
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T Instance) where T : Form, new()
|
|
||||||
{
|
|
||||||
if (Instance is null || Instance.IsDisposed)
|
|
||||||
{
|
|
||||||
if (m_FormBeingCreated is object)
|
|
||||||
{
|
|
||||||
if (m_FormBeingCreated.ContainsKey(typeof(T)) == true)
|
|
||||||
{
|
|
||||||
throw new InvalidOperationException(Microsoft.VisualBasic.CompilerServices.Utils.GetResourceString("WinForms_RecursiveFormCreate"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_FormBeingCreated = new Hashtable();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_FormBeingCreated.Add(typeof(T), null);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
catch (System.Reflection.TargetInvocationException ex) when (ex.InnerException is object)
|
|
||||||
{
|
|
||||||
string BetterMessage = Microsoft.VisualBasic.CompilerServices.Utils.GetResourceString("WinForms_SeeInnerException", ex.InnerException.Message);
|
|
||||||
throw new InvalidOperationException(BetterMessage, ex.InnerException);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
m_FormBeingCreated.Remove(typeof(T));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return Instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance) where T : Form
|
|
||||||
{
|
|
||||||
instance.Dispose();
|
|
||||||
instance = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyForms() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
[ThreadStatic()]
|
|
||||||
private static Hashtable m_FormBeingCreated;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyForms);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static ThreadSafeObjectProvider<MyForms> m_MyFormsObjectProvider = new ThreadSafeObjectProvider<MyForms>();
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.WebServices")]
|
|
||||||
internal static MyWebServices WebServices
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyWebServicesObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")]
|
|
||||||
internal sealed class MyWebServices
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyWebServices);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T instance) where T : new()
|
|
||||||
{
|
|
||||||
if (instance == null)
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance)
|
|
||||||
{
|
|
||||||
instance = default;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyWebServices() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyWebServices> m_MyWebServicesObjectProvider = new ThreadSafeObjectProvider<MyWebServices>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.InteropServices.ComVisible(false)]
|
|
||||||
internal sealed class ThreadSafeObjectProvider<T> where T : new()
|
|
||||||
{
|
|
||||||
internal T GetInstance
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElseDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (m_ThreadStaticValue == null)
|
|
||||||
m_ThreadStaticValue = new T();
|
|
||||||
return m_ThreadStaticValue;
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public ThreadSafeObjectProvider() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElseDirectiveTrivia */
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[ThreadStatic()]
|
|
||||||
private static T m_ThreadStaticValue;
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
// See Compiler::LoadXmlSolutionExtension
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Xml.Linq;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller.My
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal sealed class InternalXmlHelper
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private InternalXmlHelper()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_Value(IEnumerable<XElement> source)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return item.Value;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_Value(IEnumerable<XElement> source, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.Value = value;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(IEnumerable<XElement> source, XName name)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return Conversions.ToString(item.Attribute(name));
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(IEnumerable<XElement> source, XName name, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.SetAttributeValue(name, value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(XElement source, XName name)
|
|
||||||
{
|
|
||||||
return Conversions.ToString(source.Attribute(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(XElement source, XName name, string value)
|
|
||||||
{
|
|
||||||
source.SetAttributeValue(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateAttribute(XName name, object value)
|
|
||||||
{
|
|
||||||
if (value is null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new XAttribute(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateNamespaceAttribute(XName name, XNamespace ns)
|
|
||||||
{
|
|
||||||
var a = new XAttribute(name, ns.NamespaceName);
|
|
||||||
a.AddAnnotation(ns);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static object RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, object obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IEnumerable elems = obj as IEnumerable;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elems);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static IEnumerable RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, IEnumerable obj)
|
|
||||||
{
|
|
||||||
if (obj is object)
|
|
||||||
{
|
|
||||||
IEnumerable<XElement> elems = obj as IEnumerable<XElement>;
|
|
||||||
if (elems is object)
|
|
||||||
{
|
|
||||||
return elems.Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessXElement);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj.Cast<object>().Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private sealed class RemoveNamespaceAttributesClosure
|
|
||||||
{
|
|
||||||
private readonly string[] m_inScopePrefixes;
|
|
||||||
private readonly XNamespace[] m_inScopeNs;
|
|
||||||
private readonly List<XAttribute> m_attributes;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal RemoveNamespaceAttributesClosure(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes)
|
|
||||||
{
|
|
||||||
m_inScopePrefixes = inScopePrefixes;
|
|
||||||
m_inScopeNs = inScopeNs;
|
|
||||||
m_attributes = attributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal XElement ProcessXElement(XElement elem)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal object ProcessObject(object obj)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is object)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XElement RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, XElement e)
|
|
||||||
{
|
|
||||||
if (e is object)
|
|
||||||
{
|
|
||||||
var a = e.FirstAttribute;
|
|
||||||
while (a is object)
|
|
||||||
{
|
|
||||||
var nextA = a.NextAttribute;
|
|
||||||
if (a.IsNamespaceDeclaration)
|
|
||||||
{
|
|
||||||
var ns = a.Annotation<XNamespace>();
|
|
||||||
string prefix = a.Name.LocalName;
|
|
||||||
if (ns is object)
|
|
||||||
{
|
|
||||||
if (inScopePrefixes is object && inScopeNs is object)
|
|
||||||
{
|
|
||||||
int lastIndex = inScopePrefixes.Length - 1;
|
|
||||||
for (int i = 0, loopTo = lastIndex; i <= loopTo; i++)
|
|
||||||
{
|
|
||||||
string currentInScopePrefix = inScopePrefixes[i];
|
|
||||||
var currentInScopeNs = inScopeNs[i];
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is not in scope
|
|
||||||
// Now check whether it's going to be in scope because it is in the attributes list
|
|
||||||
|
|
||||||
if (attributes is object)
|
|
||||||
{
|
|
||||||
int lastIndex = attributes.Count - 1;
|
|
||||||
for (int i = 0, loopTo1 = lastIndex; i <= loopTo1; i++)
|
|
||||||
{
|
|
||||||
var currentA = attributes[i];
|
|
||||||
string currentInScopePrefix = currentA.Name.LocalName;
|
|
||||||
var currentInScopeNs = currentA.Annotation<XNamespace>();
|
|
||||||
if (currentInScopeNs is object)
|
|
||||||
{
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is object)
|
|
||||||
{
|
|
||||||
// Prefix is definitely not in scope
|
|
||||||
a.Remove();
|
|
||||||
// namespace is not defined either. Add this attributes list
|
|
||||||
attributes.Add(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a = nextA;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Microsoft.VisualBasic
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Module | AttributeTargets.Assembly, Inherited = false)]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
internal sealed class Embedded : Attribute
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
</root>
|
|
||||||
@@ -19,7 +19,7 @@ namespace Pilz.Updating.UpdateInstaller {
|
|||||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class MyIcons {
|
internal class MyIcons {
|
||||||
|
|||||||
@@ -1,60 +1,27 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<StartupObject>Pilz.Updating.UpdateInstaller.My.MyApplication</StartupObject>
|
|
||||||
<RootNamespace>Pilz.Updating.UpdateInstaller</RootNamespace>
|
|
||||||
<MyType>WindowsForms</MyType>
|
<MyType>WindowsForms</MyType>
|
||||||
<TargetFramework>net8.0-windows</TargetFramework>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<AssemblyTitle>Pilz.Updating.UpdateInstaller</AssemblyTitle>
|
<AssemblyTitle>Pilz.Updating.UpdateInstaller</AssemblyTitle>
|
||||||
<Company>Pilzinsel64</Company>
|
<Company>Pilzinsel64</Company>
|
||||||
<Product>Pilz.Updating.UpdateInstaller</Product>
|
<Product>Pilz.Updating.UpdateInstaller</Product>
|
||||||
<Copyright>Copyright © Pilzinsel64 2019 - 2020</Copyright>
|
|
||||||
<DocumentationFile>Pilz.Updating.UpdateInstaller.xml</DocumentationFile>
|
<DocumentationFile>Pilz.Updating.UpdateInstaller.xml</DocumentationFile>
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591</NoWarn>
|
||||||
<ExtrasEnableWinFormsProjectSetup>true</ExtrasEnableWinFormsProjectSetup>
|
<ExtrasEnableWinFormsProjectSetup>true</ExtrasEnableWinFormsProjectSetup>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DefineDebug>true</DefineDebug>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DefineDebug>false</DefineDebug>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionExplicit>On</OptionExplicit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionCompare>Binary</OptionCompare>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionStrict>Off</OptionStrict>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionInfer>On</OptionInfer>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<ApplicationIcon>icons8_software_installer.ico</ApplicationIcon>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'RelMono|AnyCPU'">
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<DefineConstants>TRACE;RelMono</DefineConstants>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
|
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
|
||||||
<PackageReference Include="Pilz.IO" Version="2.0.0" />
|
<PackageReference Include="Pilz.IO" Version="2.0.0" />
|
||||||
<PackageReference Include="Pilz.Plugins" Version="2.0.0" />
|
<PackageReference Include="Pilz.Plugins" Version="2.1.9" />
|
||||||
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
|
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
|
||||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||||
<PackageReference Include="UI.for.WinForms.AllControls.Net60">
|
|
||||||
<Version>2023.1.117</Version>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Import Include="Microsoft.VisualBasic" />
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
@@ -76,10 +43,6 @@
|
|||||||
<DependentUpon>Main.cs</DependentUpon>
|
<DependentUpon>Main.cs</DependentUpon>
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="My Project\Application.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Application.myapp</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="MyIcons.Designer.cs">
|
<Compile Update="MyIcons.Designer.cs">
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
@@ -132,10 +95,6 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="My Project\Application.myapp">
|
|
||||||
<Generator>MyApplicationCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Application.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<CustomToolNamespace>Pilz.Updating.UpdateInstaller.My</CustomToolNamespace>
|
<CustomToolNamespace>Pilz.Updating.UpdateInstaller.My</CustomToolNamespace>
|
||||||
@@ -152,11 +111,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
|
<PackageReference Include="UI.for.WinForms.Common" Version="2024.2.514" />
|
||||||
|
<PackageReference Include="UI.for.WinForms.Themes" Version="2024.2.514" />
|
||||||
<PackageReference Include="Z.ExtensionMethods.WithNamespace" Version="2.1.1" />
|
<PackageReference Include="Z.ExtensionMethods.WithNamespace" Version="2.1.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Compile Remove="obj\RelMono\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" />
|
|
||||||
<Compile Remove="obj\RelMono\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" />
|
|
||||||
<Compile Remove="obj\RelMono\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
</Project>
|
||||||
14
Pilz.Updating.UpdateInstaller/Program.cs
Normal file
14
Pilz.Updating.UpdateInstaller/Program.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
internal static class Program
|
||||||
|
{
|
||||||
|
internal static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Application.EnableVisualStyles();
|
||||||
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
|
||||||
|
Application.Run(new Main());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
using global::System;
|
using global::System;
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.InteropServices;
|
using global::System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Pilz.Updating.UpdateInstaller.My.Resources {
|
|||||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Pilz.Updating.UpdateInstaller.My.Resources {
|
|||||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class UpdateInstallerGuiLangRes {
|
internal class UpdateInstallerGuiLangRes {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public class ApplicationVersion
|
||||||
{
|
{
|
||||||
public class ApplicationVersion
|
|
||||||
{
|
|
||||||
|
|
||||||
// P r o p e r t i e s
|
// P r o p e r t i e s
|
||||||
|
|
||||||
@@ -69,5 +69,4 @@ namespace Pilz.Updating
|
|||||||
{
|
{
|
||||||
return a == b || a < b;
|
return a == b || a < b;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public enum Channels
|
||||||
{
|
{
|
||||||
public enum Channels
|
|
||||||
{
|
|
||||||
Stable,
|
Stable,
|
||||||
PreRelease,
|
PreRelease,
|
||||||
Beta,
|
Beta,
|
||||||
Alpha
|
Alpha
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using global::System.IO;
|
||||||
using global::System.IO;
|
using System;
|
||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
internal static class MyPaths
|
||||||
{
|
{
|
||||||
internal static class MyPaths
|
|
||||||
{
|
|
||||||
private static string p = string.Empty;
|
private static string p = string.Empty;
|
||||||
|
|
||||||
public static string GetMyAppDataPath()
|
public static string GetMyAppDataPath()
|
||||||
@@ -20,5 +20,4 @@ namespace Pilz.Updating
|
|||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RootNamespace>Pilz.Updating</RootNamespace>
|
<RootNamespace>Pilz.Updating</RootNamespace>
|
||||||
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
|
<TargetFrameworks>net8.0-windows</TargetFrameworks>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);$(ProjectDir)**\*.vb</DefaultItemExcludes>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<AssemblyTitle>Pilz.Updating</AssemblyTitle>
|
<AssemblyTitle>Pilz.Updating</AssemblyTitle>
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
<DocumentationFile>Pilz.Updating.xml</DocumentationFile>
|
<DocumentationFile>Pilz.Updating.xml</DocumentationFile>
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591,CS0660,CS0661</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,CS1591,CS0660,CS0661</NoWarn>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DefineDebug>true</DefineDebug>
|
<DefineDebug>true</DefineDebug>
|
||||||
@@ -37,7 +36,6 @@
|
|||||||
<DefineConstants>TRACE;RelMono</DefineConstants>
|
<DefineConstants>TRACE;RelMono</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using global::System;
|
using global::System;
|
||||||
using global::System.Reflection;
|
|
||||||
using global::System.Runtime.CompilerServices;
|
using global::System.Runtime.CompilerServices;
|
||||||
using global::System.Runtime.InteropServices;
|
using global::System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System.Collections.Generic;
|
using global::Newtonsoft.Json.Linq;
|
||||||
using global::Newtonsoft.Json.Linq;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public class UpdateInfo
|
||||||
{
|
{
|
||||||
public class UpdateInfo
|
|
||||||
{
|
|
||||||
public string UpdateInstallerLink { get; set; }
|
public string UpdateInstallerLink { get; set; }
|
||||||
public List<UpdatePackageInfo> Packages { get; set; } = new List<UpdatePackageInfo>();
|
public List<UpdatePackageInfo> Packages { get; set; } = [];
|
||||||
|
|
||||||
public static UpdateInfo Parse(string str)
|
public static UpdateInfo Parse(string str)
|
||||||
{
|
{
|
||||||
@@ -17,5 +17,4 @@ namespace Pilz.Updating
|
|||||||
{
|
{
|
||||||
return JObject.FromObject(this).ToString();
|
return JObject.FromObject(this).ToString();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using global::Newtonsoft.Json.Linq;
|
||||||
using global::System.Drawing;
|
using System;
|
||||||
using global::Newtonsoft.Json.Linq;
|
|
||||||
|
|
||||||
namespace Pilz.Updating.UpdateInstaller
|
namespace Pilz.Updating.UpdateInstaller;
|
||||||
|
|
||||||
|
public class UpdateInstallerConfig
|
||||||
{
|
{
|
||||||
public class UpdateInstallerConfig
|
|
||||||
{
|
|
||||||
public string PackagePath { get; set; }
|
public string PackagePath { get; set; }
|
||||||
public bool RestartHostApplication { get; set; }
|
public bool RestartHostApplication { get; set; }
|
||||||
public string RestartHostApplicationArguments { get; set; }
|
public string RestartHostApplicationArguments { get; set; }
|
||||||
@@ -27,5 +26,4 @@ namespace Pilz.Updating.UpdateInstaller
|
|||||||
{
|
{
|
||||||
return Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(JObject.FromObject(this).ToString()));
|
return Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(JObject.FromObject(this).ToString()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,10 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public class UpdateNotes
|
||||||
{
|
{
|
||||||
public class UpdateNotes
|
|
||||||
{
|
|
||||||
public string Content { get; set; }
|
public string Content { get; set; }
|
||||||
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||||
public UpdateNotesContentType ContentType { get; set; } = UpdateNotesContentType.PlainText;
|
public UpdateNotesContentType ContentType { get; set; } = UpdateNotesContentType.PlainText;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
using System;
|
namespace Pilz.Updating;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Pilz.Updating
|
public enum UpdateNotesContentType
|
||||||
{
|
{
|
||||||
public enum UpdateNotesContentType
|
|
||||||
{
|
|
||||||
PlainText,
|
PlainText,
|
||||||
Markdown,
|
Markdown,
|
||||||
HTML
|
HTML
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Pilz.Updating
|
namespace Pilz.Updating;
|
||||||
|
|
||||||
|
public class UpdatePackageInfo
|
||||||
{
|
{
|
||||||
public class UpdatePackageInfo
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public ApplicationVersion Version { get; set; }
|
public ApplicationVersion Version { get; set; }
|
||||||
public UpdateNotes Notes { get; } = new UpdateNotes();
|
public UpdateNotes Notes { get; } = new UpdateNotes();
|
||||||
@@ -19,5 +19,4 @@ namespace Pilz.Updating
|
|||||||
Notes.ContentType = UpdateNotesContentType.PlainText;
|
Notes.ContentType = UpdateNotesContentType.PlainText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>Telerik UI for WinForms Upgrade Wizard Log</title>
|
|
||||||
<style type="text/css">
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
background-color: #fff;
|
|
||||||
font: normal 12px Arial, sans-serif;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
#header {
|
|
||||||
display: block;
|
|
||||||
margin: 0;
|
|
||||||
padding: 20px;
|
|
||||||
height: 60px;
|
|
||||||
min-width: 600px;
|
|
||||||
background: url('file:///c:/users/pilz/appdata/local/microsoft/visualstudio/17.0_5e953d86/extensions/x03qv30a.dul/Resources/T4Templates/UpgradeLog/Logo.png') no-repeat right 30px top 30px;
|
|
||||||
background-color: #0e0e0e;
|
|
||||||
color: #909090;
|
|
||||||
font: normal 10px Arial, sans-serif;
|
|
||||||
}
|
|
||||||
#header span {
|
|
||||||
display: block;
|
|
||||||
color: #fff;
|
|
||||||
font: normal 22px Arial, sans-serif;
|
|
||||||
}
|
|
||||||
#legend {
|
|
||||||
display: block;
|
|
||||||
height: 20px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
background-color: #0e0e0e;
|
|
||||||
font: normal 12px Arial, sans-serif;
|
|
||||||
}
|
|
||||||
#legend span {
|
|
||||||
display: block;
|
|
||||||
float: left;
|
|
||||||
height: 18px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 2px 10px 0 10px;
|
|
||||||
background-color: #8e8e8e;
|
|
||||||
font: normal 12px Arial, sans-serif;
|
|
||||||
}
|
|
||||||
table#logTable {
|
|
||||||
border: 1px solid #999;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
table#logTable th, table#logTable td {
|
|
||||||
border: 1px solid #999;
|
|
||||||
padding: 5px 10px;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
table#logTable th {
|
|
||||||
border: 0;
|
|
||||||
padding: 5px 10px;
|
|
||||||
background-color: #8e8e8e;
|
|
||||||
height: 20px;
|
|
||||||
font: bold 14px Arial, sans-serif;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<table id="logTable" cellpadding="0px" cellspacing="0px">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td colspan="5" style="padding: 0;">
|
|
||||||
<div id="header">
|
|
||||||
Telerik UI for WinForms <span>Upgrade Wizard Log</span>
|
|
||||||
</div>
|
|
||||||
<div id="legend">
|
|
||||||
<span style="background-color: #0e0e0e; color: #fff;">Processed: 0</span>
|
|
||||||
<span style="background-color: green; color: #fff;">Succeeded: 0</span>
|
|
||||||
<span style="background-color: blue; color: #fff;">Info: 0</span>
|
|
||||||
<span style="background-color: gold; color: #fff;">Warnings: 0</span>
|
|
||||||
<span style="background-color: red; color: #fff;">Failed: 0</span>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th> </th>
|
|
||||||
<th>Project</th>
|
|
||||||
<th>Title</th>
|
|
||||||
<th>Details</th>
|
|
||||||
<th>Result</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user