public ArrayTypeWidget(ArrayType arrayType, Point localtion) { InitializeComponent(); Location = localtion; m_arrayType = arrayType; m_cbb_type.Items.AddRange(BaseType.AllTypeNamesExlude(MainWindow.Instance.CurrentSelectedType as BaseType)); m_cbb_type.Items.Add(ArrayType.ArrayTyteStr); if (m_arrayType.ElementType != null) { m_cbb_type.SelectedIndex = m_cbb_type.Items.IndexOf(m_arrayType.ElementType.TypeName()); } else { m_cbb_type.SelectedIndex = 0; } }