fix typos and rename a function

This commit is contained in:
Jisheng Xing 2018-06-21 21:41:19 +08:00 committed by Konstantina Chremmou
parent 538e6f90a1
commit b6e1ad6b83
11 changed files with 15 additions and 15 deletions

View File

@ -361,7 +361,7 @@ namespace XenAdmin.Controls
public void Expand()
{
ValueColumn.MinimumWidth = 5;
HelpersGUI.ResizeLastGridViewColumn(ValueColumn);
HelpersGUI.ResizeGridViewColumnToAllCells(ValueColumn);
ToggleExpandedState(true);
}

View File

@ -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

View File

@ -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
{

View File

@ -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);

View File

@ -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);
}

View File

@ -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; }

View File

@ -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()

View File

@ -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)
{

View File

@ -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);

View File

@ -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();

View File

@ -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