bool temp_compare(EsfTabControl.BaseGameItem x) { var cclass = x.getValue(GameInfo.save_item_cclass); var filter_text = comboBoxFilter.Text.ToLower(); var result = cclass == filter_text; return(result); }
public virtual void reset() { if (comboBoxItems.SelectedIndex > -1) { EsfTabControl.BaseGameItem character = (comboBoxItems.SelectedItem as EsfTabControl.BaseGameItem); foreach (var tb in this.tbs) { tb.Text = character.getValue((string)tb.Tag); } foreach (var sdc in this.FlattenChildren().OfType <ISaveEditorControl>()) { sdc.setExisting(GameInfo.getItemCollection( comboBoxItems.SelectedItem, ((Control)sdc).Tag as string)); sdc.reset(); } } else { clear(); } }