Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
 public void Init(RiftIdControl givenRiftIdControl)
 {
     formControl = givenRiftIdControl;
 }