Exemple #1
0
 private void toolStripButtonEdit_Click(object sender, EventArgs e)
 {
     if (this.listViewPages.SelectedItems.Count > 0 && this.listViewPages.SelectedItems[0].Tag is ResourceInfo)
     {
         ResourceInfo portletInfo = (ResourceInfo)this.listViewPages.SelectedItems[0].Tag;
         this.Cursor = Cursors.WaitCursor;
         FormEditPorlet formEditPorlet = new FormEditPorlet(portletInfo, repositoryName, contentID);
         this.Cursor = Cursors.Default;
         formEditPorlet.ShowDialog();
         loadPorlets();
     }
 }
Exemple #2
0
        private void listViewPages_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewItem item = this.listViewPages.GetItemAt(e.X, e.Y);

            if (item != null)
            {
                ResourceInfo portletInfo = (ResourceInfo)item.Tag;
                this.Cursor = Cursors.WaitCursor;
                FormEditPorlet formEditPorlet = new FormEditPorlet(portletInfo, repositoryName, contentID);
                this.Cursor = Cursors.Default;
                formEditPorlet.ShowDialog();
                loadPorlets();
            }
        }