зеркало из https://github.com/microsoft/2LCS.git
Add experimental NuGet packages export
This commit is contained in:
Родитель
c4536f069a
Коммит
561f9fcca6
|
@ -109,6 +109,7 @@
|
||||||
logoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
logoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
cookieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
cookieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
parametersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
parametersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
tabControl = new System.Windows.Forms.TabControl();
|
tabControl = new System.Windows.Forms.TabControl();
|
||||||
cheTabPage = new System.Windows.Forms.TabPage();
|
cheTabPage = new System.Windows.Forms.TabPage();
|
||||||
saasTabPage = new System.Windows.Forms.TabPage();
|
saasTabPage = new System.Windows.Forms.TabPage();
|
||||||
|
@ -179,7 +180,9 @@
|
||||||
notifyIcon = new System.Windows.Forms.NotifyIcon(components);
|
notifyIcon = new System.Windows.Forms.NotifyIcon(components);
|
||||||
notifyIconContextMenu = new System.Windows.Forms.ContextMenuStrip(components);
|
notifyIconContextMenu = new System.Windows.Forms.ContextMenuStrip(components);
|
||||||
notifyIconMenuClose = new System.Windows.Forms.ToolStripMenuItem();
|
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();
|
((System.ComponentModel.ISupportInitialize)cheDataGridView).BeginInit();
|
||||||
cheInstanceContextMenu.SuspendLayout();
|
cheInstanceContextMenu.SuspendLayout();
|
||||||
mainMenuStrip.SuspendLayout();
|
mainMenuStrip.SuspendLayout();
|
||||||
|
@ -674,7 +677,7 @@
|
||||||
//
|
//
|
||||||
// exportToolStripMenuItem
|
// 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.Enabled = false;
|
||||||
exportToolStripMenuItem.Name = "exportToolStripMenuItem";
|
exportToolStripMenuItem.Name = "exportToolStripMenuItem";
|
||||||
exportToolStripMenuItem.Size = new System.Drawing.Size(66, 24);
|
exportToolStripMenuItem.Size = new System.Drawing.Size(66, 24);
|
||||||
|
@ -807,6 +810,13 @@
|
||||||
parametersToolStripMenuItem.Text = "Parameters";
|
parametersToolStripMenuItem.Text = "Parameters";
|
||||||
parametersToolStripMenuItem.Click += ParametersToolStripMenuItem_Click;
|
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
|
||||||
//
|
//
|
||||||
tabControl.Controls.Add(cheTabPage);
|
tabControl.Controls.Add(cheTabPage);
|
||||||
|
@ -1358,12 +1368,26 @@
|
||||||
notifyIconMenuClose.Text = "Close 2LCS";
|
notifyIconMenuClose.Text = "Close 2LCS";
|
||||||
notifyIconMenuClose.Click += NotifyIconMenuClose_Click;
|
notifyIconMenuClose.Click += NotifyIconMenuClose_Click;
|
||||||
//
|
//
|
||||||
// aboutToolStripMenuItem
|
// exportAssetLibraryToolStripMenuItem
|
||||||
//
|
//
|
||||||
aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
exportAssetLibraryToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { sharedAssetLibraryToolStripMenuItem });
|
||||||
aboutToolStripMenuItem.Size = new System.Drawing.Size(64, 24);
|
exportAssetLibraryToolStripMenuItem.Name = "exportAssetLibraryToolStripMenuItem";
|
||||||
aboutToolStripMenuItem.Text = "About";
|
exportAssetLibraryToolStripMenuItem.Size = new System.Drawing.Size(445, 26);
|
||||||
aboutToolStripMenuItem.Click += aboutToolStripMenuItem_Click;
|
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
|
// MainForm
|
||||||
//
|
//
|
||||||
|
@ -1550,6 +1574,9 @@
|
||||||
private System.Windows.Forms.ToolStripMenuItem currentProjectUsersExportMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem currentProjectUsersExportMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem allProjectUsersExportMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem allProjectUsersExportMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
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 Xceed.Words.NET;
|
||||||
using static LCS.NativeMethods;
|
using static LCS.NativeMethods;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using LCS.AssetLibrary;
|
||||||
|
|
||||||
namespace LCS.Forms
|
namespace LCS.Forms
|
||||||
{
|
{
|
||||||
|
@ -2552,6 +2553,11 @@ namespace LCS.Forms
|
||||||
About2LCS about2LCS = new About2LCS();
|
About2LCS about2LCS = new About2LCS();
|
||||||
about2LCS.ShowDialog();
|
about2LCS.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void nuGetPackagesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
_httpClientHelper.GetSharedAssetList(AssetFileType.NuGetPackage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class StringExtension
|
public static class StringExtension
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, 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="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">
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче