Imported Upstream version 5.8.0.22

Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-10-19 20:04:20 +00:00
parent 5f4a27cc8a
commit 7d05485754
5020 changed files with 114082 additions and 186061 deletions

View File

@@ -38,9 +38,6 @@ namespace System.Windows.Forms {
internal TableLayoutStyleCollection (TableLayoutPanel table)
{
if (table == null)
throw new ArgumentNullException("table");
this.table = table;
}
@@ -54,7 +51,8 @@ namespace System.Windows.Forms {
foreach (TableLayoutStyle style in al)
style.Owner = null;
al.Clear ();
table.PerformLayout ();
if (table != null)
table.PerformLayout ();
}
public int Count {
@@ -65,7 +63,8 @@ namespace System.Windows.Forms {
{
((TableLayoutStyle)al[index]).Owner = null;
al.RemoveAt (index);
table.PerformLayout ();
if (table != null)
table.PerformLayout ();
}
#region IList methods
@@ -103,14 +102,16 @@ namespace System.Windows.Forms {
throw new ArgumentException ("Style is already owned");
((TableLayoutStyle)style).Owner = table;
al.Insert (index, (TableLayoutStyle) style);
table.PerformLayout ();
if (table != null)
table.PerformLayout ();
}
void IList.Remove (object style)
{
((TableLayoutStyle)style).Owner = null;
al.Remove ((TableLayoutStyle) style);
table.PerformLayout ();
if (table != null)
table.PerformLayout ();
}
bool IList.IsFixedSize {
@@ -134,7 +135,8 @@ namespace System.Windows.Forms {
throw new ArgumentException ("Style is already owned");
((TableLayoutStyle)value).Owner = table;
al [index] = value;
table.PerformLayout ();
if (table != null)
table.PerformLayout ();
}
}
#endregion

View File

@@ -1 +1 @@
1d090632a1ac178fa39c8d2a335a6c32534ba0f1
b60c42b346611dc2e9d9b68824662ca4cb5f0d9f