void CopyRecord(PartnerProspectFollowUpClient selectedItem)
        {
            if (selectedItem == null)
            {
                return;
            }
            var followUp = Activator.CreateInstance(selectedItem.GetType()) as PartnerProspectFollowUpClient;

            CorasauDataGrid.CopyAndClearRowId(selectedItem, followUp);
            var parms = new object[3] {
                followUp, false, dgCrmFollowUpGrid.masterRecord
            };

            AddDockItem(TabControls.PartnerProspectFollowUpPage2, parms, Uniconta.ClientTools.Localization.lookup("FollowUp"), "Add_16x16.png");
        }
 void InitPage(CrudAPI crudapi)
 {
     layoutControl                = layoutItems;
     deCreated.IsReadOnly         = true;
     deCreated.AllowDefaultButton = false;
     if (LoadedRow == null)
     {
         frmRibbon.DisableButtons("Delete");
         if (!isCopiedRow)
         {
             editrow = CreateNew() as PartnerProspectFollowUpClient;
             editrow.SetMaster(master);
         }
         deCreated.IsReadOnly         = false;
         deCreated.AllowDefaultButton = true;
         liUpdatedAt.Visibility       = Visibility.Collapsed;
     }
     layoutItems.DataContext  = editrow;
     frmRibbon.OnItemClicked += frmRibbon_OnItemClicked;
 }