private void ItemContextMenuOpenTranslatorItem_Click(object sender, EventArgs e) { ToolStrip sendingMenu = ((ToolStripMenuItem)sender).Owner; Point sendingMenuRelativeLocation = PointToClient(sendingMenu.Location); DataGridView.HitTestInfo sendingMenuHitInfo = BrowserGridView.HitTest(sendingMenuRelativeLocation.X, sendingMenuRelativeLocation.Y); if (sendingMenuHitInfo.RowIndex <= -1) { return; } Translator translatorDialog = new Translator(stblEntry: FindEntry(BrowserGridView.Rows[sendingMenuHitInfo.RowIndex])); translatorDialog.ShowDialog(); RefreshItems(); }
public void SelectAllItems() { BrowserGridView.SelectAll(); }
public void RefreshItems() { BrowserGridView.Refresh(); }