Beispiel #1
0
 protected override void CancelEdit()
 {
     if (DataForm != null)
     {
         DataForm.CancelEdit();
         (DataForm.ParentOfType <RadWindow>()).DialogResult = false;
         (DataForm.ParentOfType <RadWindow>()).Close();
     }
 }
Beispiel #2
0
 protected override void CommitEdit()
 {
     if (DataForm != null && DataForm.ValidateItem())
     {
         if (commitEditOp(DataForm.CurrentItem))
         {
             DataForm.CommitEdit();
             (DataForm.ParentOfType <RadWindow>()).DialogResult = true;
             (DataForm.ParentOfType <RadWindow>()).Close();
         }
     }
 }