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