private void dataGrid_content_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     using (MonthlyTasksContent notes = new MonthlyTasksContent(selectedId, layer + 1, title))
     {
         notes.OnRefreshGrid += this.OnMonthlyTaskSaved;
         notes.ShowDialog();
     }
 }
Exemple #2
0
        private void dataGrid_monthly_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            // Left Click
            int    colId = (int)dataGrid_monthly.SelectedRows[0].Cells[0].Value;
            string title = dataGrid_monthly.SelectedRows[0].Cells[4].Value.ToString();


            using (MonthlyTasksContent monthlyTasksContent = new MonthlyTasksContent(colId, 1, title))
            {
                monthlyTasksContent.OnRefreshGrid += this.OnSave;
                monthlyTasksContent.ShowDialog();
            }
        }