Example #1
0
        private void radMenuItem1_Click(object sender, EventArgs e)
        {
            RadMenuItem        item           = sender as RadMenuItem;
            RadTaskCardElement taskCardToEdit = item.Tag as RadTaskCardElement;
            TaskCardEditDialog editDialog     = new TaskCardEditDialog(taskCardToEdit, this.radTaskBoard1);

            editDialog.ShowDialog();
        }
Example #2
0
 private void radTaskBoard1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         RadTaskCardElement taskCard = this.radTaskBoard1.ElementTree.GetElementAtPoint(e.Location) as RadTaskCardElement;
         if (taskCard != null)
         {
             TaskCardEditDialog editDialog = new TaskCardEditDialog(taskCard, this.radTaskBoard1);
             editDialog.ShowDialog();
         }
     }
 }
Example #3
0
        private void col_TaskCardAdding(RadTaskBoardColumnElement.TaskCardAddingEventArgs args)
        {
            RadTaskCardElement defaultTaskCard = new RadTaskCardElement();
            TaskCardEditDialog editDialog      = new TaskCardEditDialog(defaultTaskCard, this.radTaskBoard1);

            if (editDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                args.TaskCard = defaultTaskCard;
            }
            else
            {
                args.Cancel = true;
            }
        }