mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
fix typos and rename a function
This commit is contained in:
parent
538e6f90a1
commit
b6e1ad6b83
@ -361,7 +361,7 @@ namespace XenAdmin.Controls
|
||||
public void Expand()
|
||||
{
|
||||
ValueColumn.MinimumWidth = 5;
|
||||
HelpersGUI.ResizeLastGridViewColumn(ValueColumn);
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(ValueColumn);
|
||||
ToggleExpandedState(true);
|
||||
}
|
||||
|
||||
|
@ -544,7 +544,7 @@ namespace XenAdmin.Core
|
||||
/// <summary>
|
||||
/// Remember to call this after populating the gridview
|
||||
/// </summary>
|
||||
public static void ResizeLastGridViewColumn(DataGridViewColumn col)
|
||||
public static void ResizeGridViewColumnToAllCells(DataGridViewColumn col)
|
||||
{
|
||||
//the last column of the gridviews used on these pages should be autosized to Fill, but should not
|
||||
//become smaller than a minimum width, which is chosen to be the column's contents (including header)
|
||||
@ -556,7 +556,7 @@ namespace XenAdmin.Core
|
||||
col.MinimumWidth = storedWidth;
|
||||
}
|
||||
|
||||
public static void ResizeGrdiViewColumnToHeader(DataGridViewTextBoxColumn col)
|
||||
public static void ResizeGridViewColumnToHeader(DataGridViewTextBoxColumn col)
|
||||
{
|
||||
//the column should be autosized to Fill, but should not become smaller than a minimum
|
||||
//width, which here is chosen to be the column header width. To find what this width is
|
||||
|
@ -471,9 +471,9 @@ namespace XenAdmin.TabPages
|
||||
if (GridViewSubjectList.SelectedRows.Count == 0)
|
||||
GridViewSubjectList.Rows[0].Selected = true;
|
||||
|
||||
HelpersGUI.ResizeLastGridViewColumn(ColumnSubject);
|
||||
HelpersGUI.ResizeLastGridViewColumn(ColumnRoles);
|
||||
HelpersGUI.ResizeLastGridViewColumn(ColumnStatus);
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(ColumnSubject);
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(ColumnRoles);
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(ColumnStatus);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -175,8 +175,8 @@ namespace XenAdmin.TabPages
|
||||
//show the SR-IOV column for Kolkata or higher hosts only
|
||||
ColumnSriovCapable.Visible = Helpers.KolkataOrGreater(host);
|
||||
|
||||
HelpersGUI.ResizeGrdiViewColumnToHeader(ColumnDeviceName);
|
||||
HelpersGUI.ResizeGrdiViewColumnToHeader(ColumnSriovCapable);
|
||||
HelpersGUI.ResizeGridViewColumnToHeader(ColumnDeviceName);
|
||||
HelpersGUI.ResizeGridViewColumnToHeader(ColumnSriovCapable);
|
||||
|
||||
if (dataGridView1.SortedColumn != null)
|
||||
dataGridView1.Sort(dataGridView1.SortedColumn, dataGridView1.SortOrder == SortOrder.Ascending ? ListSortDirection.Ascending : ListSortDirection.Descending);
|
||||
|
@ -243,7 +243,7 @@ namespace XenAdmin.TabPages
|
||||
//CA-47050: the dnsColumn should be autosized to Fill, but should not become smaller than a minimum
|
||||
//width, which is chosen to be the column's contents (including header) width. To find what this is
|
||||
//set temporarily the column's autosize mode to AllCells.
|
||||
HelpersGUI.ResizeLastGridViewColumn(ColumnDevicePath);
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(ColumnDevicePath);
|
||||
}
|
||||
|
||||
|
||||
|
@ -107,7 +107,7 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard
|
||||
m_dataGridView.Rows.Add(row);
|
||||
}
|
||||
|
||||
HelpersGUI.ResizeLastGridViewColumn(Column2);//set properly the width of the last column
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(Column2);//set properly the width of the last column
|
||||
}
|
||||
|
||||
public Func<IEnumerable<SummaryDetails>> SummaryRetreiver { private get; set; }
|
||||
|
@ -79,7 +79,7 @@ namespace XenAdmin.Wizards.ExportWizard
|
||||
m_dataGridView.Rows.Add(row);
|
||||
}
|
||||
|
||||
HelpersGUI.ResizeLastGridViewColumn(Column2);//set properly the width of the last column
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(Column2);//set properly the width of the last column
|
||||
}
|
||||
|
||||
protected override bool ImplementsIsDirty()
|
||||
|
@ -425,7 +425,7 @@ namespace XenAdmin.Wizards.GenericPages
|
||||
m_dataGridView.Rows.Add(row);
|
||||
}
|
||||
|
||||
HelpersGUI.ResizeLastGridViewColumn(m_colTarget); //set properly the width of the last column
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(m_colTarget); //set properly the width of the last column
|
||||
|
||||
if (restoreGridHomeServerSelection)
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ namespace XenAdmin.Wizards.GenericPages
|
||||
m_dataGridView.Rows.Clear();
|
||||
SetButtonNextEnabled(true);
|
||||
FillTableRows();
|
||||
HelpersGUI.ResizeLastGridViewColumn(m_colTargetNet);//set properly the width of the last column
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(m_colTargetNet);//set properly the width of the last column
|
||||
}
|
||||
|
||||
public abstract NetworkResourceContainer NetworkData(string sysId);
|
||||
|
@ -262,7 +262,7 @@ namespace XenAdmin.Wizards.GenericPages
|
||||
i++;
|
||||
}
|
||||
}
|
||||
HelpersGUI.ResizeLastGridViewColumn(m_colStorage);//set properly the width of the last column
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(m_colStorage);//set properly the width of the last column
|
||||
|
||||
m_comboBoxSr.Items.Clear();
|
||||
|
||||
|
@ -84,7 +84,7 @@ namespace XenAdmin.Wizards.ImportWizard
|
||||
m_dataGridView.Rows.Add(row);
|
||||
}
|
||||
|
||||
HelpersGUI.ResizeLastGridViewColumn(Column2);//set properly the width of the last column
|
||||
HelpersGUI.ResizeGridViewColumnToAllCells(Column2);//set properly the width of the last column
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user