Enabled insert Next and Previous on the Figure substep type (B2016-111)

Set the cursor focus to the Find Text box when Find/Replace is first started (B2016-107)
Added a Cancel button to the “Reopen Last Database” dialog, which will exit PROMS
This commit is contained in:
John Jenko 2016-05-13 18:58:14 +00:00
parent 0697d763f3
commit 65ad595afc
3 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -2922,6 +2922,7 @@ namespace VEPROMS
dlgFindReplace.Mydocversion = _SelectedDVI; dlgFindReplace.Mydocversion = _SelectedDVI;
dlgFindReplace.Visible = true; dlgFindReplace.Visible = true;
dlgFindReplace.MyDisplayBookMarks = displayBookMarks; dlgFindReplace.MyDisplayBookMarks = displayBookMarks;
dlgFindReplace.SetFocusToTextBox(); // bug fix: B2016-107, when Find/Replace is initially opened, set the cursor focus to the Find Text box
} }
else if (args.PanelTabName == "SpellChecker") else if (args.PanelTabName == "SpellChecker")
{ {

View File

@ -261,11 +261,16 @@ public static string DBServer
{ {
if (LastDatabase != "NoDefault" && LastDatabase != "") if (LastDatabase != "NoDefault" && LastDatabase != "")
{ {
if (System.Windows.Forms.MessageBox.Show("Open " + LastDatabase, "Reopen Last Database", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) System.Windows.Forms.DialogResult dlgrslt = System.Windows.Forms.MessageBox.Show("Open " + LastDatabase, "Reopen Last Database", System.Windows.Forms.MessageBoxButtons.YesNoCancel, System.Windows.Forms.MessageBoxIcon.Question);
if (dlgrslt == System.Windows.Forms.DialogResult.Yes)
{ {
SelectedDatabase = LastDatabase; SelectedDatabase = LastDatabase;
return constr.Replace("{MENU}", _SelectedDatabase); return constr.Replace("{MENU}", _SelectedDatabase);
} }
else if (dlgrslt == System.Windows.Forms.DialogResult.Cancel)
{
Process.GetCurrentProcess().Kill(); // exit PROMS
}
} }
System.Windows.Forms.ContextMenuStrip cms = BuildDatabaseMenu(constr); System.Windows.Forms.ContextMenuStrip cms = BuildDatabaseMenu(constr);
while (_SelectedDatabase == null) while (_SelectedDatabase == null)