static void txtTeleTownSearchText_Change(object sender, MVTextBoxChangeEventArgs e) { var searchText = txtTeleTownSearchText.Text; if (searchText.Length == 0) { addAll(); return; } try { lstTeleTownSearchList.Clear(); foreach (string name in PluginCore.towns) { if (!(name.ToLowerInvariant().Contains(searchText.ToLowerInvariant()))) { continue; } IListRow row = lstTeleTownSearchList.Add(); row[0][0] = name; } } catch (Exception ex) { PluginCore.LogError(ex); } }
static void txtSpawnModelSearchText_Change(object sender, MVTextBoxChangeEventArgs e) { var searchText = txtSpawnModelSearchText.Text; if (searchText.Length == 0) { addAll(); return; } try { lstSpawnModelSearchList.Clear(); foreach (KeyValuePair <int, string> model in PluginCore.models) { if (!(model.Value.ToLowerInvariant().Contains(searchText.ToLowerInvariant()))) { continue; } IListRow row = lstSpawnModelSearchList.Add(); row[0][0] = model.Key.ToString("X4"); row[1][0] = model.Value.ToString(); } } catch (Exception ex) { PluginCore.LogError(ex); } }
private void a(object A_0, MVTextBoxChangeEventArgs A_1) { this.b(); }