You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
1d090632a1ac178fa39c8d2a335a6c32534ba0f1
|
||||
b60c42b346611dc2e9d9b68824662ca4cb5f0d9f
|
||||
Reference in New Issue
Block a user