public PreferenceItemEditor(IPreferenceItem item) { InitializeComponent(); _item = item; StringResource sr = UsabilityPlugin.Strings; this.Text = sr.GetString("Form.PreferenceItemEditor.Text"); _nameLabel.Text = sr.GetString("Form.PreferenceItemEditor._nameLabel") + " " + item.FullQualifiedId; _valueLabel.Text = sr.GetString("Form.PreferenceItemEditor._valueLabel"); _resetButton.Text = sr.GetString("Form.PreferenceItemEditor._resetButton"); _okButton.Text = sr.GetString("Common.OK"); _cancelButton.Text = sr.GetString("Common.Cancel"); //int/stringどちらかの場合をサポート IIntPreferenceItem intitem = item.AsInt(); IStringPreferenceItem stritem = item.AsString(); Debug.Assert(intitem != null || stritem != null); _valueBox.Text = intitem != null ? intitem.Value.ToString() : stritem.Value; }
public virtual void ValidateItem(IPreferenceItem item, IPreferenceValidationResult output) { }
public virtual string GetDescription(IPreferenceItem item) { return ""; }
public void OnChange(IPreferenceItem item) { }
public string GetDescription(IPreferenceItem item) { return null; }
public string GetDescription(IPreferenceItem item) { return(""); }
private bool IsVisibleItem(IPreferenceItem item) { string filter = _filterBox.Text; return(filter.Length == 0 ? true : item.FullQualifiedId.Contains(filter)); //テキストの絞込み }
public ItemTag(IPreferenceItem item) { _item = item; }
public string GetDescription(IPreferenceItem item) { return "MRU"; }
internal bool Contains(IPreferenceItem item) { return(_children.Contains(item)); }