Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InitializeArrays() [1/3]

void System.ComponentModel.PropertyTabAttribute.InitializeArrays ( string[] tabClassNames,
Type[] tabClasses,
PropertyTabScope[] tabScopes )
inlineprivate

Definition at line 146 of file PropertyTabAttribute.cs.

147 {
148 if (tabClasses != null)
149 {
150 if (tabScopes != null && tabClasses.Length != tabScopes.Length)
151 {
153 }
154 _tabClasses = (Type[])tabClasses.Clone();
155 }
156 else if (tabClassNames != null)
157 {
158 if (tabScopes != null && tabClassNames.Length != tabScopes.Length)
159 {
161 }
162 _tabClassNames = (string[])tabClassNames.Clone();
163 _tabClasses = null;
164 }
165 else if (_tabClasses == null && _tabClassNames == null)
166 {
168 }
169 if (tabScopes != null)
170 {
171 for (int i = 0; i < tabScopes.Length; i++)
172 {
173 if (tabScopes[i] < PropertyTabScope.Document)
174 {
176 }
177 }
178 TabScopes = (PropertyTabScope[])tabScopes.Clone();
179 }
180 else
181 {
182 TabScopes = new PropertyTabScope[tabClasses.Length];
183 for (int j = 0; j < TabScopes.Length; j++)
184 {
185 TabScopes[j] = PropertyTabScope.Component;
186 }
187 }
188 }
static string PropertyTabAttributeParamsBothNull
Definition SR.cs:74
static string PropertyTabAttributeBadPropertyTabScope
Definition SR.cs:68
static string PropertyTabAttributeArrayLengthMismatch
Definition SR.cs:72
Definition SR.cs:7

References System.ComponentModel.PropertyTabAttribute._tabClasses, System.ComponentModel.PropertyTabAttribute._tabClassNames, System.SR.PropertyTabAttributeArrayLengthMismatch, System.SR.PropertyTabAttributeBadPropertyTabScope, System.SR.PropertyTabAttributeParamsBothNull, and System.ComponentModel.PropertyTabAttribute.TabScopes.