/* * -------------------------------------------------------------------- * METHODS * -------------------------------------------------------------------- */ #region __METHODS__ private int find_item( ) { list_region data = this.DataSource as list_region; int index = -1; for (int i = 0; i < data.Count; ++i) { if (data[i].ToString( ).ToUpper( ).Contains(this.Text.ToUpper( ))) { index = i; break; } } return(index); }
/* * -------------------------------------------------------------------- * INITIALIZE * -------------------------------------------------------------------- */ #region __INITIALIZE__ void initialize( ) { this.data = new list_region( ); }