private void createOlv_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.RowIndex >= 0) { createOlvContextMenu.Show(createOlv, createOlv.PointToClient(Cursor.Position)); } }
private void fileListView_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Item != null) { e.MenuStrip = SourceFileMenu; } }
private void olvDuplicates_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model is null) { return; } CollectionMember mlastSelected = (CollectionMember)e.Model; possibleMergedEpisodeRightClickMenu.Items.Clear(); if (mlastSelected.IsInLibrary) { MovieConfiguration?si = mDoc.FilmLibrary.GetMovie(mlastSelected.TmdbCode); if (si != null) { AddRcMenuItem("Force Refresh", (o, args) => mainUi.ForceMovieRefresh(si, false)); AddRcMenuItem("Edit Movie", (o, args) => mainUi.EditMovie(si)); } } else { AddRcMenuItem("Add to Library...", (o, args) => AddToLibrary(mlastSelected.Movie)); } //possibleMergedEpisodeRightClickMenu.Items.Add(new ToolStripSeparator()); }
private void FOLV_Masks_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model != null) { this.contextMenuPosObj = (ObjectPosition)e.Model; } }
private void objectListView1_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { addCreatureToolStripMenuItem.Enabled = deleteToolStripMenuItem.Enabled = combineToolStripMenuItem.Enabled = renameToolStripMenuItem.Enabled = e.Model != null; }
private void FOLV_MaskHistory_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model != null) { this.contextMenuPosObj = (ObjectPosition)e.Model; this.cam = AITOOL.GetCamera(this.contextMenuPosObj.CameraName); } }
private void olvSequences_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model != null) { sequencesMenu.Tag = e.Model; e.MenuStrip = sequencesMenu; } }
void flvPackets_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.RowIndex == -1) { return; } EditStructure(); }
private void SetupTreeCellRightClickMenu(BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model is IssueModel || e.Model is RuleModel) { e.MenuStrip = new ContextMenuStrip(); e.MenuStrip.Items.Add(new ToolStripMenuItem("View Data", null, TreeMenuItemViewClick) { Tag = e.Model }); } }
private void OnCellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model != null) { var item = (TraceListItem)e.Model; m_StopRecordingMenuItem.Enabled = item.Status == TraceStatus.Recording; m_AddUserTraceMarkMenuItem.Enabled = item.Status == TraceStatus.Recording; m_ShowWarningsMenuItem.Enabled = item.Status == TraceStatus.Ready && item.WarningCount > 0; e.MenuStrip = m_NodeContextMenu; } }
private void tlvSequence_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { stepEditToolStripMenuItem.Enabled = tlvSequence.SelectedObjects.Count == 1; stepGoToThisStepToolStripMenuItem.Enabled = tlvSequence.SelectedObjects.Count == 1; stepCutToolStripMenuItem.Enabled = tlvSequence.SelectedObjects.Count > 0; stepCopyToolStripMenuItem.Enabled = tlvSequence.SelectedObjects.Count > 0; stepPasteToolStripMenuItem.Enabled = zClipboardHasSteps() && tlvSequence.SelectedObjects.Count < 2; stepRemoveToolStripMenuItem.Enabled = tlvSequence.SelectedObjects.Count > 0; e.MenuStrip = stepsMenu; }
private void proxyOlv_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.RowIndex < 0) { gridMenu.Show(proxyOlv, proxyOlv.PointToClient(Cursor.Position)); } else { cellMenu.Show(proxyOlv, proxyOlv.PointToClient(Cursor.Position)); } }
private void olvScheduledTasks_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model != null) { scheduledTasksMenu.Tag = e.Model; ScheduledTask scheduledTask = (ScheduledTask)e.Model; taskDisableToolStripMenuItem.Text = scheduledTask.Enabled ? "Disable..." : "Enable..."; taskDisableToolStripMenuItem.Image = scheduledTask.Enabled ? Properties.Resources.RedCircle : Properties.Resources.GreenCircle; taskRunNowToolStripMenuItem.Enabled = scheduledTask.Enabled; e.MenuStrip = scheduledTasksMenu; } }
// Show Context Menu Strip private void hostListView_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { // Get selected Host Item HostItem selectedItem = (HostItem)e.Model; if (null != selectedItem) { this.selectedHostItem = selectedItem; // Set Context Menu Strip to show e.MenuStrip = this.contextMenuStrip; } }
private void lvRecommendations_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model is null) { return; } RecommendationRow mlastSelected = (RecommendationRow)e.Model; possibleMergedEpisodeRightClickMenu.Items.Clear(); AddRcMenuItem("Add to Library", (o, args) => AddToLibrary(mlastSelected.Key, mDoc)); }
private void lvRecommendations_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model is null) { return; } RecommendationRow mlastSelected = (RecommendationRow)e.Model; possibleMergedEpisodeRightClickMenu.Items.Clear(); AddRcMenuItem("Add to Library", (o, args) => AddToLibrary(mlastSelected.Key, mDoc)); //AddRcMenuItem("Force Refresh", (o, args) => mainUi.ForceRefresh(new List<ShowConfiguration> {si}, false)); //AddRcMenuItem("Edit Show", (o, args) => mainUi.EditShow(si)); }
/// <summary> /// 树右键菜单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeListViewOper_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (this.operInfo == null) { this.contextMenuStrip.Enabled = false; } else { this.contextMenuStrip.Enabled = true; if (this.copy == null) { this.toolSkick.Enabled = false; } else { this.toolSkick.Enabled = true; } } }
private void olvDuplicates_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (e.Model is null) { return; } DuplicateMovie mlastSelected = (DuplicateMovie)e.Model; MovieConfiguration si = mlastSelected.Movie; possibleMergedEpisodeRightClickMenu.Items.Clear(); AddRcMenuItem("Force Refresh", (o, args) => { mainUi.ForceMovieRefresh(new List <MovieConfiguration> { si }, false); Update(mlastSelected); }); AddRcMenuItem("Update", (o, args) => { Update(mlastSelected); }); AddRcMenuItem("Edit Movie", (o, args) => { mainUi.EditMovie(si); Update(mlastSelected); }); AddRcMenuItem("Choose Best", (o, args) => MergeItems(mlastSelected, mainUi)); possibleMergedEpisodeRightClickMenu.Items.Add(new ToolStripSeparator()); foreach (FileInfo?f in mlastSelected.Files) { AddRcMenuItem("Visit " + f.FullName, (o, args) => { Helpers.OpenFolderSelectFile(f.FullName); Update(mlastSelected); }); } }
private void orderBoard_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { orderContextMenu.Items.Clear(); ToolStripMenuItem[] menuOptions; if (clientBoard.SelectedObject != null) { menuOptions = new ToolStripMenuItem[] { new ToolStripMenuItem("Dodaj", Resources.add_16px, addOrder_Click), new ToolStripMenuItem("Edytuj", Resources.notes_16px, editOrder_Click), new ToolStripMenuItem("Usuń", Resources.minus_16px, removeOrder_Click) }; } else { menuOptions = new ToolStripMenuItem[] { new ToolStripMenuItem("Dodaj", Resources.add_16px, addOrder_Click) }; } orderContextMenu.Items.AddRange(menuOptions); orderContextMenu.Show(this, PointToClient(MousePosition)); }
void treeListView1_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { if (!IsBsonMode || e.Model == null) { return; } var rootNode = e.Model as ResultTreeNodeModel; if (rootNode == null) { return; } while (rootNode.Parent != null) { rootNode = rootNode.Parent; } _currentModel = rootNode; e.MenuStrip = cmsRightClick; }
private void TlvAnalysisTree_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { SetupTreeCellRightClickMenu(e); }
private void objectListView1_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { contextMenuStrip1.Show(new System.Drawing.Point(Cursor.Position.X, Cursor.Position.Y - 30)); _rTmp = (Room)e.Model; }
private void OnCellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { e.MenuStrip = GetRightClickMenu((MemTreeNode)e.Model); }
private void treeListView1_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { //e.MenuStrip = new ContextMenuStrip(); //MessageBox.Show("HI"); }
private void objectListViewDownloads_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { e.MenuStrip = this.CreateItemMenu(e.Model, e.Column); }
private void OlvIssues_CellRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e) { SetupTreeCellRightClickMenu(e); }