private void MenuItemDownload_Click(object sender, EventArgs e) { AlbumListModeSort albumListModeSort = contextMenuStrip1.Tag as AlbumListModeSort; PhotoDownload pd = new PhotoDownload(this); pd.Start(new AlbumListModeSort[] { albumListModeSort }); }
public void OnMouseRightDown(AlbumListModeSort albumListModeSort) { contextMenuStrip1.Tag = albumListModeSort; contextMenuStrip1.Show(MousePosition); }
public AlbumMouseDown(AlbumListModeSort albumListModeSort, OnMouseRightDownDelegate onMouseRightDownDelegate) { this.onMouseRightDownDelegate = onMouseRightDownDelegate; this.albumListModeSort = albumListModeSort; }