Beispiel #1
0
        private void btnCreateHistoryRecord_Click(object sender, EventArgs e)
        {
            if (selectedPossibleDuplicate != null)
            {
                string        riftId        = string.Empty;
                RiftIdControl riftIdControl = new RiftIdControl();
                RiftIdForm    riftIdForm    = new RiftIdForm();
                riftIdForm.Init(riftIdControl);
                DialogResult dr = riftIdForm.ShowDialog();
                if (dr == System.Windows.Forms.DialogResult.OK)
                {
                    riftId = riftIdControl.RiftId;
                    string historyRecordRecId = mainFormControl.CreateHistoryRecordForRiftId(selectedPossibleDuplicate, riftId, user);
                    DisplayHistoryRecordCreationResult(historyRecordRecId);
                }
                else
                {
                    // cancel clicked
                }

                // update the list after processing
                PDList.RefreshList(recordCounter);
                DisplayPaginationInformation();
            }
        }
Beispiel #2
0
        private void btnImport_Click(object sender, EventArgs e)
        {
            if (selectedPossibleDuplicate != null)
            {
                string returnRecId = mainFormControl.ImportContact(selectedPossibleDuplicate, user);
                DisplayImportResult(returnRecId);

                // update the list after processing
                PDList.RefreshList(recordCounter);
                DisplayPaginationInformation();
            }
        }
Beispiel #3
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (selectedPossibleDuplicate != null)
     {
         AreYouSureMessageBox areYouSure = new AreYouSureMessageBox();
         DialogResult         dr         = areYouSure.ShowDialog();
         if (dr == System.Windows.Forms.DialogResult.OK)
         {
             bool success = mainFormControl.DeletePossibleDuplicate(selectedPossibleDuplicate, user);
             DisplayDeletionSuccess(success);
             // update the list after processing
             PDList.RefreshList(recordCounter);
             DisplayPaginationInformation();
         }
     }
 }