private void btnAdd_Click(object sender, EventArgs e) { if (cmbAttr.SelectedIndex < 0) { return; } TFSAttr Attr = DB.mAttrs[cmbAttr.SelectedIndex]; TFSFileAttribute result = new TFSFileAttribute(null, Attr, txtValue.Text, 1, DB); txtValue.Text = ""; EventHandler <AddFileAttrEventArgs> handler = this.AddFileAttr; if (handler != null) { handler(this, new AddFileAttrEventArgs(result)); } }
public AttrributeChangedEventArgs(TFSAttr _Attr) { Attr = _Attr; }