Add experimental NuGet packages export

This commit is contained in:
Florian Hopfner 2024-01-28 19:05:00 +01:00
Родитель c4536f069a
Коммит 561f9fcca6
3 изменённых файлов: 41 добавлений и 8 удалений

41
2LCS/Forms/MainForm.Designer.cs сгенерированный
Просмотреть файл

@ -109,6 +109,7 @@
logoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
cookieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
parametersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
tabControl = new System.Windows.Forms.TabControl();
cheTabPage = new System.Windows.Forms.TabPage();
saasTabPage = new System.Windows.Forms.TabPage();
@ -179,7 +180,9 @@
notifyIcon = new System.Windows.Forms.NotifyIcon(components);
notifyIconContextMenu = new System.Windows.Forms.ContextMenuStrip(components);
notifyIconMenuClose = new System.Windows.Forms.ToolStripMenuItem();
aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
exportAssetLibraryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
sharedAssetLibraryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
nuGetPackagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)cheDataGridView).BeginInit();
cheInstanceContextMenu.SuspendLayout();
mainMenuStrip.SuspendLayout();
@ -674,7 +677,7 @@
//
// exportToolStripMenuItem
//
exportToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { exportProjectDataToolStripMenuItem1, exportListOfUsersToolStripMenuItem, exportListOfInstancesForAllProjectsToolStripMenuItem, exportUpdateScheduleForAllProjectsToolStripMenuItem, exportListOfEnvChangesToolStripMenuItem });
exportToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { exportProjectDataToolStripMenuItem1, exportListOfUsersToolStripMenuItem, exportListOfInstancesForAllProjectsToolStripMenuItem, exportUpdateScheduleForAllProjectsToolStripMenuItem, exportListOfEnvChangesToolStripMenuItem, exportAssetLibraryToolStripMenuItem });
exportToolStripMenuItem.Enabled = false;
exportToolStripMenuItem.Name = "exportToolStripMenuItem";
exportToolStripMenuItem.Size = new System.Drawing.Size(66, 24);
@ -807,6 +810,13 @@
parametersToolStripMenuItem.Text = "Parameters";
parametersToolStripMenuItem.Click += ParametersToolStripMenuItem_Click;
//
// aboutToolStripMenuItem
//
aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
aboutToolStripMenuItem.Size = new System.Drawing.Size(64, 24);
aboutToolStripMenuItem.Text = "About";
aboutToolStripMenuItem.Click += aboutToolStripMenuItem_Click;
//
// tabControl
//
tabControl.Controls.Add(cheTabPage);
@ -1358,12 +1368,26 @@
notifyIconMenuClose.Text = "Close 2LCS";
notifyIconMenuClose.Click += NotifyIconMenuClose_Click;
//
// aboutToolStripMenuItem
// exportAssetLibraryToolStripMenuItem
//
aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
aboutToolStripMenuItem.Size = new System.Drawing.Size(64, 24);
aboutToolStripMenuItem.Text = "About";
aboutToolStripMenuItem.Click += aboutToolStripMenuItem_Click;
exportAssetLibraryToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { sharedAssetLibraryToolStripMenuItem });
exportAssetLibraryToolStripMenuItem.Name = "exportAssetLibraryToolStripMenuItem";
exportAssetLibraryToolStripMenuItem.Size = new System.Drawing.Size(445, 26);
exportAssetLibraryToolStripMenuItem.Text = "Export asset library";
//
// sharedAssetLibraryToolStripMenuItem
//
sharedAssetLibraryToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { nuGetPackagesToolStripMenuItem });
sharedAssetLibraryToolStripMenuItem.Name = "sharedAssetLibraryToolStripMenuItem";
sharedAssetLibraryToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
sharedAssetLibraryToolStripMenuItem.Text = "Shared asset library";
//
// nuGetPackagesToolStripMenuItem
//
nuGetPackagesToolStripMenuItem.Name = "nuGetPackagesToolStripMenuItem";
nuGetPackagesToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
nuGetPackagesToolStripMenuItem.Text = "NuGet packages";
nuGetPackagesToolStripMenuItem.Click += nuGetPackagesToolStripMenuItem_Click;
//
// MainForm
//
@ -1550,6 +1574,9 @@
private System.Windows.Forms.ToolStripMenuItem currentProjectUsersExportMenuItem;
private System.Windows.Forms.ToolStripMenuItem allProjectUsersExportMenuItem;
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exportAssetLibraryToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem sharedAssetLibraryToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem nuGetPackagesToolStripMenuItem;
}
}

Просмотреть файл

@ -20,6 +20,7 @@ using Xceed.Document.NET;
using Xceed.Words.NET;
using static LCS.NativeMethods;
using System.Globalization;
using LCS.AssetLibrary;
namespace LCS.Forms
{
@ -2552,6 +2553,11 @@ namespace LCS.Forms
About2LCS about2LCS = new About2LCS();
about2LCS.ShowDialog();
}
private void nuGetPackagesToolStripMenuItem_Click(object sender, EventArgs e)
{
_httpClientHelper.GetSharedAssetList(AssetFileType.NuGetPackage);
}
}
public static class StringExtension

Просмотреть файл

@ -18,7 +18,7 @@
<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="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>