Ejemplo n.º 1
0
 private void dataGrid_content_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         // Store collection id and show contextmenu
         selectedId = JournalTask.ContextMenuHandler(dataGrid_content, contextMenuStrip1, e);
     }
 }
Ejemplo n.º 2
0
        private void dataGrid_content_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                selectedId = JournalTask.ContextMenuHandler(dataGrid_content, contextMenuStrip1, e);
            }

            if (e.Button == MouseButtons.Left)
            {
                selectedId = JournalTask.ContextMenuHandler(dataGrid_content, contextMenuStrip1, e);
                contextMenuStrip1.Hide();
            }
        }
Ejemplo n.º 3
0
        private void dataGrid_collection_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
        {
            // Right Click
            if (e.Button == MouseButtons.Right)
            {
                title = dataGrid_notes.SelectedRows[0].Cells[1].Value.ToString();
                // Store id
                taskId = JournalTask.ContextMenuHandler(dataGrid_notes, contextMenuStrip1, e);

                contextMenuStrip1.Items["migrate"].Visible = false;
                entryType = JournalTask.EntryType.notes;
            }
        }
Ejemplo n.º 4
0
        private void dataGrid_content_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                selectedId = JournalTask.ContextMenuHandler(dataGrid_content, contextMenuStrip1, e);
                title      = dataGrid_content.SelectedRows[0].Cells[5].Value.ToString();
            }

            if (e.Button == MouseButtons.Left)
            {
                selectedId = JournalTask.ContextMenuHandler(dataGrid_content, contextMenuStrip1, e);
                if (selectedId != 0)
                {
                    title = dataGrid_content.SelectedRows[0].Cells[5].Value.ToString();
                }
                contextMenuStrip1.Hide();
            }
        }
Ejemplo n.º 5
0
        private void dataGrid_futureLog_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                taskId = JournalTask.ContextMenuHandler(dataGrid_futureLog, contextMenuStrip1, e);
                if (taskId != 0)
                {
                    title = dataGrid_futureLog.SelectedRows[0].Cells[4].Value.ToString();
                }

                entryType = JournalTask.EntryType.future;
                contextMenuStrip1.Hide();
            }

            // right clock
            if (e.Button == MouseButtons.Right)
            {
                title = dataGrid_futureLog.SelectedRows[0].Cells[4].Value.ToString();

                taskId    = JournalTask.ContextMenuHandler(dataGrid_futureLog, contextMenuStrip1, e);
                entryType = JournalTask.EntryType.future;
            }
        }