mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CP-5604: Converted the "Dismiss All" ToolStripButton on the Alerts dialog to a ToolStripSplitButton with the options to "Dismiss All" or "Dismiss Selected" alerts. Minor code tidy.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@citrix.com>
This commit is contained in:
parent
02270b416d
commit
b9f3aacfbf
174
XenAdmin/Dialogs/AlertSummaryDialog.Designer.cs
generated
174
XenAdmin/Dialogs/AlertSummaryDialog.Designer.cs
generated
@ -40,6 +40,11 @@ namespace XenAdmin.Dialogs
|
||||
this.ButtonClose = new System.Windows.Forms.Button();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.GridViewAlerts = new XenAdmin.Controls.DataGridViewEx.DataGridViewEx();
|
||||
this.ColumnExpand = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.ColumnType = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.ColumnDetails = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnAppliesTo = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ContextMenuAlertGridView = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.ToolStripMenuItemFix = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ToolStripMenuItemHelp = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@ -49,15 +54,17 @@ namespace XenAdmin.Dialogs
|
||||
this.LabelCappingEntries = new System.Windows.Forms.Label();
|
||||
this.LabelDialogBlurb = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStrip1 = new XenAdmin.Controls.ToolStripEx();
|
||||
this.toolStripDropDownSeveritiesFilter = new XenAdmin.Controls.FilterSeveritiesToolStripDropDownButton();
|
||||
this.toolStripDropDownButtonServerFilter = new XenAdmin.Controls.FilterLocationToolStripDropDownButton();
|
||||
this.toolStripDropDownButtonDateFilter = new XenAdmin.Controls.FilterDatesToolStripDropDownButton();
|
||||
this.toolStripDropDownSeveritiesFilter = new XenAdmin.Controls.FilterSeveritiesToolStripDropDownButton();
|
||||
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButtonRefresh = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButtonExportAll = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButtonDismissAll = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSplitButtonDismiss = new System.Windows.Forms.ToolStripSplitButton();
|
||||
this.tsmiDismissAll = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiDismissSelected = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripLabelFiltersOnOff = new System.Windows.Forms.ToolStripLabel();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@ -66,11 +73,6 @@ namespace XenAdmin.Dialogs
|
||||
this.toolStripButtonFix = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButtonHelp = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButtonDismiss = new System.Windows.Forms.ToolStripButton();
|
||||
this.ColumnExpand = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.ColumnType = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.ColumnDetails = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnAppliesTo = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.GridViewAlerts)).BeginInit();
|
||||
this.ContextMenuAlertGridView.SuspendLayout();
|
||||
@ -131,6 +133,62 @@ namespace XenAdmin.Dialogs
|
||||
this.GridViewAlerts.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GridViewAlerts_KeyDown);
|
||||
this.GridViewAlerts.SelectionChanged += new System.EventHandler(this.GridViewAlerts_SelectionChanged);
|
||||
//
|
||||
// ColumnExpand
|
||||
//
|
||||
this.ColumnExpand.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
|
||||
dataGridViewCellStyle2.NullValue = null;
|
||||
dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0);
|
||||
this.ColumnExpand.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.ColumnExpand.FillWeight = 49.51523F;
|
||||
resources.ApplyResources(this.ColumnExpand, "ColumnExpand");
|
||||
this.ColumnExpand.Name = "ColumnExpand";
|
||||
this.ColumnExpand.ReadOnly = true;
|
||||
this.ColumnExpand.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||
//
|
||||
// ColumnType
|
||||
//
|
||||
this.ColumnType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
|
||||
dataGridViewCellStyle3.NullValue = null;
|
||||
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||
this.ColumnType.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.ColumnType.FillWeight = 109.5524F;
|
||||
resources.ApplyResources(this.ColumnType, "ColumnType");
|
||||
this.ColumnType.Name = "ColumnType";
|
||||
this.ColumnType.ReadOnly = true;
|
||||
this.ColumnType.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.ColumnType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// ColumnDetails
|
||||
//
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.ColumnDetails.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.ColumnDetails.FillWeight = 380F;
|
||||
resources.ApplyResources(this.ColumnDetails, "ColumnDetails");
|
||||
this.ColumnDetails.Name = "ColumnDetails";
|
||||
this.ColumnDetails.ReadOnly = true;
|
||||
//
|
||||
// ColumnAppliesTo
|
||||
//
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
||||
this.ColumnAppliesTo.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.ColumnAppliesTo.FillWeight = 109.5524F;
|
||||
resources.ApplyResources(this.ColumnAppliesTo, "ColumnAppliesTo");
|
||||
this.ColumnAppliesTo.Name = "ColumnAppliesTo";
|
||||
this.ColumnAppliesTo.ReadOnly = true;
|
||||
//
|
||||
// ColumnDate
|
||||
//
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
||||
this.ColumnDate.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.ColumnDate.FillWeight = 130F;
|
||||
resources.ApplyResources(this.ColumnDate, "ColumnDate");
|
||||
this.ColumnDate.Name = "ColumnDate";
|
||||
this.ColumnDate.ReadOnly = true;
|
||||
this.ColumnDate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
//
|
||||
// ContextMenuAlertGridView
|
||||
//
|
||||
this.ContextMenuAlertGridView.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
@ -195,6 +253,7 @@ namespace XenAdmin.Dialogs
|
||||
//
|
||||
resources.ApplyResources(this.toolStrip1, "toolStrip1");
|
||||
this.toolStrip1.BackColor = System.Drawing.SystemColors.InactiveBorder;
|
||||
this.toolStrip1.ClickThrough = true;
|
||||
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripDropDownSeveritiesFilter,
|
||||
@ -204,10 +263,15 @@ namespace XenAdmin.Dialogs
|
||||
this.toolStripButtonRefresh,
|
||||
this.toolStripSeparator1,
|
||||
this.toolStripButtonExportAll,
|
||||
this.toolStripButtonDismissAll,
|
||||
this.toolStripSplitButtonDismiss,
|
||||
this.toolStripLabelFiltersOnOff});
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
//
|
||||
// toolStripDropDownSeveritiesFilter
|
||||
//
|
||||
resources.ApplyResources(this.toolStripDropDownSeveritiesFilter, "toolStripDropDownSeveritiesFilter");
|
||||
this.toolStripDropDownSeveritiesFilter.Name = "toolStripDropDownSeveritiesFilter";
|
||||
//
|
||||
// toolStripDropDownButtonServerFilter
|
||||
//
|
||||
this.toolStripDropDownButtonServerFilter.AutoToolTip = false;
|
||||
@ -221,11 +285,6 @@ namespace XenAdmin.Dialogs
|
||||
resources.ApplyResources(this.toolStripDropDownButtonDateFilter, "toolStripDropDownButtonDateFilter");
|
||||
this.toolStripDropDownButtonDateFilter.Name = "toolStripDropDownButtonDateFilter";
|
||||
//
|
||||
// toolStripDropDownSeveritiesFilter
|
||||
//
|
||||
resources.ApplyResources(this.toolStripDropDownSeveritiesFilter, "toolStripDropDownSeveritiesFilter");
|
||||
this.toolStripDropDownSeveritiesFilter.Name = "toolStripDropDownSeveritiesFilter";
|
||||
//
|
||||
// toolStripSeparator3
|
||||
//
|
||||
this.toolStripSeparator3.Name = "toolStripSeparator3";
|
||||
@ -250,12 +309,27 @@ namespace XenAdmin.Dialogs
|
||||
this.toolStripButtonExportAll.Name = "toolStripButtonExportAll";
|
||||
this.toolStripButtonExportAll.Click += new System.EventHandler(this.toolStripButtonExportAll_Click);
|
||||
//
|
||||
// toolStripButtonDismissAll
|
||||
// toolStripSplitButtonDismiss
|
||||
//
|
||||
this.toolStripButtonDismissAll.AutoToolTip = false;
|
||||
resources.ApplyResources(this.toolStripButtonDismissAll, "toolStripButtonDismissAll");
|
||||
this.toolStripButtonDismissAll.Name = "toolStripButtonDismissAll";
|
||||
this.toolStripButtonDismissAll.Click += new System.EventHandler(this.DismissAllButton_Click);
|
||||
this.toolStripSplitButtonDismiss.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.toolStripSplitButtonDismiss.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tsmiDismissAll,
|
||||
this.tsmiDismissSelected});
|
||||
resources.ApplyResources(this.toolStripSplitButtonDismiss, "toolStripSplitButtonDismiss");
|
||||
this.toolStripSplitButtonDismiss.Name = "toolStripSplitButtonDismiss";
|
||||
this.toolStripSplitButtonDismiss.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStripSplitButtonDismiss_DropDownItemClicked);
|
||||
//
|
||||
// tsmiDismissAll
|
||||
//
|
||||
this.tsmiDismissAll.Name = "tsmiDismissAll";
|
||||
resources.ApplyResources(this.tsmiDismissAll, "tsmiDismissAll");
|
||||
this.tsmiDismissAll.Click += new System.EventHandler(this.tsmiDismissAll_Click);
|
||||
//
|
||||
// tsmiDismissSelected
|
||||
//
|
||||
this.tsmiDismissSelected.Name = "tsmiDismissSelected";
|
||||
resources.ApplyResources(this.tsmiDismissSelected, "tsmiDismissSelected");
|
||||
this.tsmiDismissSelected.Click += new System.EventHandler(this.ButtonDismiss_Click);
|
||||
//
|
||||
// toolStripLabelFiltersOnOff
|
||||
//
|
||||
@ -319,62 +393,6 @@ namespace XenAdmin.Dialogs
|
||||
this.toolStripButtonDismiss.Name = "toolStripButtonDismiss";
|
||||
this.toolStripButtonDismiss.Click += new System.EventHandler(this.ButtonDismiss_Click);
|
||||
//
|
||||
// ColumnExpand
|
||||
//
|
||||
this.ColumnExpand.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
|
||||
dataGridViewCellStyle2.NullValue = null;
|
||||
dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0);
|
||||
this.ColumnExpand.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.ColumnExpand.FillWeight = 49.51523F;
|
||||
resources.ApplyResources(this.ColumnExpand, "ColumnExpand");
|
||||
this.ColumnExpand.Name = "ColumnExpand";
|
||||
this.ColumnExpand.ReadOnly = true;
|
||||
this.ColumnExpand.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||
//
|
||||
// ColumnType
|
||||
//
|
||||
this.ColumnType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
|
||||
dataGridViewCellStyle3.NullValue = null;
|
||||
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||
this.ColumnType.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.ColumnType.FillWeight = 109.5524F;
|
||||
resources.ApplyResources(this.ColumnType, "ColumnType");
|
||||
this.ColumnType.Name = "ColumnType";
|
||||
this.ColumnType.ReadOnly = true;
|
||||
this.ColumnType.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.ColumnType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// ColumnDetails
|
||||
//
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.ColumnDetails.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.ColumnDetails.FillWeight = 380F;
|
||||
resources.ApplyResources(this.ColumnDetails, "ColumnDetails");
|
||||
this.ColumnDetails.Name = "ColumnDetails";
|
||||
this.ColumnDetails.ReadOnly = true;
|
||||
//
|
||||
// ColumnAppliesTo
|
||||
//
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
||||
this.ColumnAppliesTo.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.ColumnAppliesTo.FillWeight = 109.5524F;
|
||||
resources.ApplyResources(this.ColumnAppliesTo, "ColumnAppliesTo");
|
||||
this.ColumnAppliesTo.Name = "ColumnAppliesTo";
|
||||
this.ColumnAppliesTo.ReadOnly = true;
|
||||
//
|
||||
// ColumnDate
|
||||
//
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
||||
this.ColumnDate.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.ColumnDate.FillWeight = 130F;
|
||||
resources.ApplyResources(this.ColumnDate, "ColumnDate");
|
||||
this.ColumnDate.Name = "ColumnDate";
|
||||
this.ColumnDate.ReadOnly = true;
|
||||
this.ColumnDate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
//
|
||||
// AlertSummaryDialog
|
||||
//
|
||||
this.AcceptButton = this.ButtonClose;
|
||||
@ -419,10 +437,9 @@ namespace XenAdmin.Dialogs
|
||||
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemHelp;
|
||||
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemDismiss;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.ToolStrip toolStrip1;
|
||||
private XenAdmin.Controls.ToolStripEx toolStrip1;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private XenAdmin.Controls.FilterDatesToolStripDropDownButton toolStripDropDownButtonDateFilter;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButtonDismissAll;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButtonExportAll;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
@ -443,5 +460,8 @@ namespace XenAdmin.Dialogs
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnDetails;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnAppliesTo;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnDate;
|
||||
private System.Windows.Forms.ToolStripSplitButton toolStripSplitButtonDismiss;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiDismissAll;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiDismissSelected;
|
||||
}
|
||||
}
|
@ -75,6 +75,8 @@ namespace XenAdmin.Dialogs
|
||||
|
||||
toolStripDropDownButtonServerFilter.InitializeHostList();
|
||||
toolStripDropDownButtonServerFilter.BuildFilterList();
|
||||
toolStripSplitButtonDismiss.DefaultItem = tsmiDismissAll;
|
||||
toolStripSplitButtonDismiss.Text = tsmiDismissAll.Text;
|
||||
}
|
||||
|
||||
void AlertSummaryDialog_Load(object sender, EventArgs e)
|
||||
@ -424,7 +426,7 @@ namespace XenAdmin.Dialogs
|
||||
DismissAlerts(selectedAlerts);
|
||||
}
|
||||
|
||||
private void DismissAllButton_Click(object sender, EventArgs e)
|
||||
private void tsmiDismissAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result;
|
||||
if (GridViewAlerts.Rows.Count == Alert.Alerts.Length) //no filter, only two buttons
|
||||
@ -457,10 +459,7 @@ namespace XenAdmin.Dialogs
|
||||
//Dismiss All
|
||||
dismissingAlerts.AddRange(Alert.Alerts);
|
||||
}
|
||||
dismissingAlerts.RemoveAll(delegate(Alert a)
|
||||
{
|
||||
return !AllowedToDismiss(a.Connection);
|
||||
});
|
||||
dismissingAlerts.RemoveAll(a => !AllowedToDismiss(a.Connection));
|
||||
DismissAlerts(dismissingAlerts.ToArray());
|
||||
}
|
||||
|
||||
@ -604,11 +603,23 @@ namespace XenAdmin.Dialogs
|
||||
|
||||
toolStripButtonExportAll.Enabled = GridViewAlerts.Rows.Count > 0;
|
||||
|
||||
toolStripButtonDismissAll.Enabled = AllowedToDismissAtLeastOne();
|
||||
// We use the nondismissing alert count here because we dont want to offer people the chance to dismiss alerts which are already being dismissed... they aren't even shown in the datagridview
|
||||
toolStripButtonDismissAll.AutoToolTip = !toolStripButtonDismissAll.Enabled;
|
||||
toolStripButtonDismissAll.ToolTipText = toolStripButtonDismissAll.Enabled ? string.Empty :
|
||||
Alert.NonDismissingAlertCount > 0 ? Messages.DELETE_ANY_MESSAGE_RBAC_BLOCKED : Messages.NO_MESSAGES_TO_DISMISS;
|
||||
// We use the nondismissing alert count here because we dont wan't to
|
||||
// offer people the chance to dismiss alerts which are already being
|
||||
// dismissed... they aren't even shown in the datagridview
|
||||
|
||||
tsmiDismissAll.Enabled = AllowedToDismissAtLeastOne();
|
||||
tsmiDismissAll.AutoToolTip = !tsmiDismissAll.Enabled;
|
||||
tsmiDismissAll.ToolTipText = tsmiDismissAll.Enabled
|
||||
? string.Empty
|
||||
: Alert.NonDismissingAlertCount > 0
|
||||
? Messages.DELETE_ANY_MESSAGE_RBAC_BLOCKED
|
||||
: Messages.NO_MESSAGES_TO_DISMISS;
|
||||
|
||||
tsmiDismissSelected.Enabled = AllowedToDismissSelected();
|
||||
tsmiDismissSelected.AutoToolTip = !tsmiDismissSelected.Enabled;
|
||||
tsmiDismissSelected.ToolTipText = tsmiDismissSelected.Enabled
|
||||
? string.Empty
|
||||
: Messages.DELETE_MESSAGE_RBAC_BLOCKED;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -729,6 +740,8 @@ namespace XenAdmin.Dialogs
|
||||
});
|
||||
}
|
||||
|
||||
#region Top ToolStrip event handlers
|
||||
|
||||
private void toolStripDropDownButtonDateFilter_FilterChanged()
|
||||
{
|
||||
Rebuild();
|
||||
@ -744,6 +757,11 @@ namespace XenAdmin.Dialogs
|
||||
Rebuild();
|
||||
}
|
||||
|
||||
private void toolStripButtonRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
Rebuild();
|
||||
}
|
||||
|
||||
private void toolStripButtonExportAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveFileDialog dialog = new SaveFileDialog();
|
||||
@ -782,12 +800,10 @@ namespace XenAdmin.Dialogs
|
||||
}).RunAsync();
|
||||
}
|
||||
|
||||
private string EscapeQuotes(string s)
|
||||
private void toolStripSplitButtonDismiss_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||||
{
|
||||
if (s == null)
|
||||
return null;
|
||||
|
||||
return s.Replace("\"", "\"\"");
|
||||
toolStripSplitButtonDismiss.DefaultItem = e.ClickedItem;
|
||||
toolStripSplitButtonDismiss.Text = toolStripSplitButtonDismiss.DefaultItem.Text;
|
||||
}
|
||||
|
||||
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@ -840,11 +856,13 @@ namespace XenAdmin.Dialogs
|
||||
EscapeQuotes(date));
|
||||
}
|
||||
|
||||
private void toolStripButtonRefresh_Click(object sender, EventArgs e)
|
||||
private string EscapeQuotes(string s)
|
||||
{
|
||||
Rebuild();
|
||||
return s == null ? null : s.Replace("\"", "\"\"");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void GridViewAlerts_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Right) // expand all selected rows
|
||||
|
@ -480,17 +480,44 @@
|
||||
<data name="toolStripButtonExportAll.Text" xml:space="preserve">
|
||||
<value>E&xport All</value>
|
||||
</data>
|
||||
<data name="toolStripButtonDismissAll.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<data name="tsmiDismissAll.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>161, 22</value>
|
||||
</data>
|
||||
<data name="tsmiDismissAll.Text" xml:space="preserve">
|
||||
<value>Dismiss &All</value>
|
||||
</data>
|
||||
<data name="tsmiDismissSelected.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>161, 22</value>
|
||||
</data>
|
||||
<data name="tsmiDismissSelected.Text" xml:space="preserve">
|
||||
<value>Dismiss &Selected</value>
|
||||
</data>
|
||||
<data name="toolStripSplitButtonDismiss.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<value>Segoe UI, 9pt</value>
|
||||
</data>
|
||||
<data name="toolStripButtonDismissAll.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
|
||||
<data name="toolStripSplitButtonDismiss.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
|
||||
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
|
||||
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
|
||||
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
|
||||
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
|
||||
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
|
||||
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
|
||||
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
|
||||
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
|
||||
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripSplitButtonDismiss.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
|
||||
<value>Magenta</value>
|
||||
</data>
|
||||
<data name="toolStripButtonDismissAll.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>68, 25</value>
|
||||
<data name="toolStripSplitButtonDismiss.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>63, 25</value>
|
||||
</data>
|
||||
<data name="toolStripButtonDismissAll.Text" xml:space="preserve">
|
||||
<value>&Dismiss All</value>
|
||||
<data name="toolStripSplitButtonDismiss.Text" xml:space="preserve">
|
||||
<value>&Dismiss</value>
|
||||
</data>
|
||||
<data name="toolStripLabelFiltersOnOff.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<value>Segoe UI, 9pt</value>
|
||||
@ -517,7 +544,7 @@
|
||||
<value>toolStrip1</value>
|
||||
</data>
|
||||
<data name=">>toolStrip1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStrip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>XenAdmin.Controls.ToolStripEx, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>toolStrip1.Parent" xml:space="preserve">
|
||||
<value>panel1</value>
|
||||
@ -702,6 +729,36 @@
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>System Alerts</value>
|
||||
</data>
|
||||
<data name=">>ColumnExpand.Name" xml:space="preserve">
|
||||
<value>ColumnExpand</value>
|
||||
</data>
|
||||
<data name=">>ColumnExpand.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewImageColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnType.Name" xml:space="preserve">
|
||||
<value>ColumnType</value>
|
||||
</data>
|
||||
<data name=">>ColumnType.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewImageColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnDetails.Name" xml:space="preserve">
|
||||
<value>ColumnDetails</value>
|
||||
</data>
|
||||
<data name=">>ColumnDetails.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnAppliesTo.Name" xml:space="preserve">
|
||||
<value>ColumnAppliesTo</value>
|
||||
</data>
|
||||
<data name=">>ColumnAppliesTo.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnDate.Name" xml:space="preserve">
|
||||
<value>ColumnDate</value>
|
||||
</data>
|
||||
<data name=">>ColumnDate.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ToolStripMenuItemFix.Name" xml:space="preserve">
|
||||
<value>ToolStripMenuItemFix</value>
|
||||
</data>
|
||||
@ -732,6 +789,12 @@
|
||||
<data name=">>copyToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>toolStripDropDownSeveritiesFilter.Name" xml:space="preserve">
|
||||
<value>toolStripDropDownSeveritiesFilter</value>
|
||||
</data>
|
||||
<data name=">>toolStripDropDownSeveritiesFilter.Type" xml:space="preserve">
|
||||
<value>XenAdmin.Controls.FilterSeveritiesToolStripDropDownButton, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>toolStripDropDownButtonServerFilter.Name" xml:space="preserve">
|
||||
<value>toolStripDropDownButtonServerFilter</value>
|
||||
</data>
|
||||
@ -744,12 +807,6 @@
|
||||
<data name=">>toolStripDropDownButtonDateFilter.Type" xml:space="preserve">
|
||||
<value>XenAdmin.Controls.FilterDatesToolStripDropDownButton, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>toolStripDropDownSeveritiesFilter.Name" xml:space="preserve">
|
||||
<value>toolStripDropDownSeveritiesFilter</value>
|
||||
</data>
|
||||
<data name=">>toolStripDropDownSeveritiesFilter.Type" xml:space="preserve">
|
||||
<value>XenAdmin.Controls.FilterSeveritiesToolStripDropDownButton, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>toolStripSeparator3.Name" xml:space="preserve">
|
||||
<value>toolStripSeparator3</value>
|
||||
</data>
|
||||
@ -774,11 +831,23 @@
|
||||
<data name=">>toolStripButtonExportAll.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>toolStripButtonDismissAll.Name" xml:space="preserve">
|
||||
<value>toolStripButtonDismissAll</value>
|
||||
<data name=">>toolStripSplitButtonDismiss.Name" xml:space="preserve">
|
||||
<value>toolStripSplitButtonDismiss</value>
|
||||
</data>
|
||||
<data name=">>toolStripButtonDismissAll.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<data name=">>toolStripSplitButtonDismiss.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripSplitButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>tsmiDismissAll.Name" xml:space="preserve">
|
||||
<value>tsmiDismissAll</value>
|
||||
</data>
|
||||
<data name=">>tsmiDismissAll.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>tsmiDismissSelected.Name" xml:space="preserve">
|
||||
<value>tsmiDismissSelected</value>
|
||||
</data>
|
||||
<data name=">>tsmiDismissSelected.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>toolStripLabelFiltersOnOff.Name" xml:space="preserve">
|
||||
<value>toolStripLabelFiltersOnOff</value>
|
||||
@ -810,36 +879,6 @@
|
||||
<data name=">>toolStripButtonDismiss.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnExpand.Name" xml:space="preserve">
|
||||
<value>ColumnExpand</value>
|
||||
</data>
|
||||
<data name=">>ColumnExpand.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewImageColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnType.Name" xml:space="preserve">
|
||||
<value>ColumnType</value>
|
||||
</data>
|
||||
<data name=">>ColumnType.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewImageColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnDetails.Name" xml:space="preserve">
|
||||
<value>ColumnDetails</value>
|
||||
</data>
|
||||
<data name=">>ColumnDetails.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnAppliesTo.Name" xml:space="preserve">
|
||||
<value>ColumnAppliesTo</value>
|
||||
</data>
|
||||
<data name=">>ColumnAppliesTo.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnDate.Name" xml:space="preserve">
|
||||
<value>ColumnDate</value>
|
||||
</data>
|
||||
<data name=">>ColumnDate.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>AlertSummaryDialog</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user