protected virtual void on_updated_settings() { var new_aliases = new aliases(sett_.get("aliases")); if (aliases_ != null && aliases_.to_enter_separated_string() == new_aliases.to_enter_separated_string()) // nothing changed return; aliases_ = new_aliases; if ( column_names_.Count > 0) aliases_.on_column_names(column_names_); }
protected virtual void on_updated_settings() { var new_aliases = new aliases(sett_.aliases); if (aliases_ != null && aliases_.to_enter_separated_string() == new_aliases.to_enter_separated_string()) { // nothing changed return; } aliases_ = new_aliases; if (column_names_.Count > 0) { aliases_.on_column_names(column_names_); } }
public alias_form(aliases aliases, List <string> column_names) { aliases_ = aliases; column_names_ = column_names; InitializeComponent(); string existing = aliases_.to_enter_separated_string(); if (existing != "") { text.Text = existing; } else { // try our best guess unknown_ = util.concatenate(column_names.Where(x => !aliases.is_known_column_name(x)).Select(x => x + "="), "\r\n"); text.Text = unknown_; } }