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(); } }
private void btnPrevious_Click(object sender, EventArgs e) { if (recordCounter != 0) { recordCounter = recordCounter - 10; PDList.Previous10(recordCounter); } DisplayPaginationInformation(); }
private void btnNext_Click(object sender, EventArgs e) { int currentCount = PDList.ListCount(); if (currentCount > 9) { recordCounter = recordCounter + 10; PDList.Next10(recordCounter); } DisplayPaginationInformation(); }
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(); } }
private void ClearProperties(string text = "") { changeProgress(0); dispatcher.BeginInvoke(new Action(() => { ExpLinksList.Clear(); PDList.Clear(); IDList.Clear(); ChtDuplicatesList.Clear(); })); StartButton = "Run"; ConsoleTextProperty = new ConsoleText { TheColor = Brushes.Red, TheText = text }; }
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(); } } }
void possibleDuplicateListControl_OnPossibleDuplicatesUpdated(object sender, EventArgs e) { // redisplay list PDList.RedisplayList(); }
private void InitiatePanels() { PDList.Init(possibleDuplicateListControl, recordCounter); PDDetails.Init(possibleDuplicateDetailsControl, gdprControl); //PDOn.Init(possibleDuplicateOnControl); }
public void LoadDataDirectory(string fpath) { var aliasFilePath = FileSystem.PathCombine(fpath, "alias.txt"); if (FileSystem.FileExists(aliasFilePath)) { ALDList.Load(aliasFilePath); } var mindFilePath = FileSystem.PathCombine(fpath, "mind.txt"); var spFilePath = FileSystem.PathCombine(fpath, "sp.txt"); if (FileSystem.FileExists(mindFilePath)) { SPDList.Load(mindFilePath); } else if (FileSystem.FileExists(spFilePath)) { SPDList.Load(spFilePath); } var pilotFilePath = FileSystem.PathCombine(fpath, "pilot.txt"); if (FileSystem.FileExists(pilotFilePath)) { PDList.Load(pilotFilePath); } var nonPilotFilePath = FileSystem.PathCombine(fpath, "non_pilot.txt"); if (FileSystem.FileExists(nonPilotFilePath)) { NPDList.Load(nonPilotFilePath); } var robotFilePath = FileSystem.PathCombine(fpath, "robot.txt"); if (FileSystem.FileExists(robotFilePath)) { UDList.Load(robotFilePath); } var unitFilePath = FileSystem.PathCombine(fpath, "unit.txt"); if (FileSystem.FileExists(unitFilePath)) { UDList.Load(unitFilePath); } //// ロードのインジケータ表示を行う //if (My.MyProject.Forms.frmNowLoading.Visible) //{ // GUI.DisplayLoadingProgress(); //} var pilotMessageFilePath = FileSystem.PathCombine(fpath, "pilot_message.txt"); if (FileSystem.FileExists(pilotMessageFilePath)) { MDList.Load(pilotMessageFilePath, false); } var pilotDialogFilePath = FileSystem.PathCombine(fpath, "pilot_dialog.txt"); if (FileSystem.FileExists(pilotDialogFilePath)) { DDList.Load(pilotDialogFilePath); } var effectFilePath = FileSystem.PathCombine(fpath, "effect.txt"); if (FileSystem.FileExists(effectFilePath)) { EDList.Load(effectFilePath, true); } var animationFilePath = FileSystem.PathCombine(fpath, "animation.txt"); if (FileSystem.FileExists(animationFilePath)) { ADList.Load(animationFilePath, false); } var ext_animationFilePath = FileSystem.PathCombine(fpath, "ext_animation.txt"); if (FileSystem.FileExists(ext_animationFilePath)) { EADList.Load(ext_animationFilePath, false); } var itemFilePath = FileSystem.PathCombine(fpath, "item.txt"); if (FileSystem.FileExists(itemFilePath)) { IDList.Load(itemFilePath); } }