mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Merge pull request #1276 from MihaelaStoica/CA-192747
CA-192747: Default name for the performance graphs
This commit is contained in:
commit
34eb42802c
@ -724,6 +724,11 @@ namespace XenAdmin.Controls.CustomDataGraph
|
||||
LoadDefaultGraphs();
|
||||
}
|
||||
|
||||
public List<string> DisplayNames
|
||||
{
|
||||
get { return Graphs.ConvertAll(g => g.DisplayName); }
|
||||
}
|
||||
|
||||
protected override void OnDrawToBuffer(PaintEventArgs paintEventArgs)
|
||||
{
|
||||
if (Plots.IndexInRange(SelectedGraphIndex))
|
||||
|
@ -37,6 +37,7 @@ using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using XenAdmin.Actions;
|
||||
using XenAdmin.Controls.CustomDataGraph;
|
||||
using XenAdmin.Core;
|
||||
|
||||
|
||||
namespace XenAdmin.Dialogs
|
||||
@ -70,6 +71,9 @@ namespace XenAdmin.Dialogs
|
||||
if (isNew)
|
||||
{
|
||||
this.designedGraph = new DesignedGraph();
|
||||
// Generate an unique suggested name for the graph
|
||||
if (graphList != null)
|
||||
this.designedGraph.DisplayName = Helpers.MakeUniqueName(Messages.GRAPH_NAME, graphList.DisplayNames);
|
||||
base.Text = Messages.GRAPHS_NEW_TITLE;
|
||||
}
|
||||
else
|
||||
|
9
XenModel/Messages.Designer.cs
generated
9
XenModel/Messages.Designer.cs
generated
@ -16043,6 +16043,15 @@ namespace XenAdmin {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Performance Graph.
|
||||
/// </summary>
|
||||
public static string GRAPH_NAME {
|
||||
get {
|
||||
return ResourceManager.GetString("GRAPH_NAME", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to To view memory data for this VM, you need to install [XenServer product] Tools.
|
||||
/// </summary>
|
||||
|
@ -5658,6 +5658,9 @@ Note: Any custom color selections will remain unchanged</value>
|
||||
<data name="GRAPH_LOADING" xml:space="preserve">
|
||||
<value>Loading Data...</value>
|
||||
</data>
|
||||
<data name="GRAPH_NAME" xml:space="preserve">
|
||||
<value>Performance Graph</value>
|
||||
</data>
|
||||
<data name="GRAPH_NEEDS_TOOLS" xml:space="preserve">
|
||||
<value>To view memory data for this VM, you need to install [XenServer product] Tools</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user