Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 public AttrributeChangedEventArgs(TFSAttr _Attr)
 {
     Attr = _Attr;
 }