コード例 #1
0
        private void OnItemFileUpdate(ItemFileUpdateEventArgs e)
        {
            EventHandler <ItemFileUpdateEventArgs> handler = ItemFileUpdate;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #2
0
        private void Handle_StepAction_ItemFileUpdate(object sender, ItemFileUpdateEventArgs e)
        {
            Util.DoAction(delegate
            {
                Item item       = e.newitem;
                String filename = e.newfilename;
                String filerev  = e.newrevision;

                if (item == null)
                {
                    return;
                }
                foreach (ListViewItem listitem in _listView.Items)
                {
                    if (listitem.Text == item.ItemNum)
                    {
                        listitem.SubItems[3].Text = filename;
                        listitem.SubItems[4].Text = filerev;
                    }
                }
            });
        }