コード例 #1
0
 internal void RowSelector_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector          = sender as Xceed.Grid.RowSelector;
         m_contextCell              = null;
         tsmShowCellContent.Visible = false;
         contextMenuStripForCell.Show(m_contextSelector.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }
コード例 #2
0
 void tsmCopy_Click(object sender, System.EventArgs e)
 {
     if (m_contextCell != null)
     {
         MyGrid.CopySelectedCellsToClipboard(m_contextCell);
         m_contextCell = null;
     }
     else if (m_contextSelector != null)
     {
         MyGrid.CopySelectedRowsToClipboard(m_contextSelector.Row);
         m_contextSelector = null;
     }
 }
コード例 #3
0
 internal void cell_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector = null;
         m_contextCell     = sender as Xceed.Grid.DataCell;
         if (m_contextCell.CellViewerManager != null && m_contextCell.CellViewerManager is Feng.Grid.Viewers.MultiLineViewer)
         {
             tsmShowCellContent.Visible = true;
         }
         else
         {
             tsmShowCellContent.Visible = false;
         }
         contextMenuStripForCell.Show(m_contextCell.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }
コード例 #4
0
 void tsmCopy_Click(object sender, System.EventArgs e)
 {
     if (m_contextCell != null)
     {
         MyGrid.CopySelectedCellsToClipboard(m_contextCell);
         m_contextCell = null;
     }
     else if (m_contextSelector != null)
     {
         MyGrid.CopySelectedRowsToClipboard(m_contextSelector.Row);
         m_contextSelector = null;
     }
 }
コード例 #5
0
 internal void RowSelector_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector = sender as Xceed.Grid.RowSelector;
         m_contextCell = null;
         tsmShowCellContent.Visible = false;
         contextMenuStripForCell.Show(m_contextSelector.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }
コード例 #6
0
 internal void cell_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector = null;
         m_contextCell = sender as Xceed.Grid.DataCell;
         if (m_contextCell.CellViewerManager != null && m_contextCell.CellViewerManager is Feng.Grid.Viewers.MultiLineViewer)
         {
             tsmShowCellContent.Visible = true;
         }
         else
         {
             tsmShowCellContent.Visible = false;
         }
         contextMenuStripForCell.Show(m_contextCell.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }