Exemplo n.º 1
0
        //
        // Drag and drop methods
        // (Mostly copied from Microsoft example code) :
        //

        private void treeView_ItemDrag(object sender, ItemDragEventArgs e)
        {
            if (FParentForm.CheckControlsValidateOk())
            {
                FDragNode = (TreeNode)e.Item;
                trvAccounts.DoDragDrop(FDragNode, DragDropEffects.All);
            }
        }
 private void grdAccounts_FocusRowLeaving(object sender, SourceGrid.RowCancelEventArgs e)
 {
     if (!FParentForm.CheckControlsValidateOk())
     {
         e.Cancel = true;
     }
 }