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 ucFileAttribute(TFSFileAttribute _FileAttribute) { InitializeComponent(); FileAttribute = _FileAttribute; }
public AttributeChangedEventArgs(TFSFileAttribute _FileAttribute) { FileAttribute = _FileAttribute; }
public AddFileAttrEventArgs(TFSFileAttribute _FileAttr) { FileAttr = _FileAttr; }