B2023-103: Improve User Interface for Incoming Transitions
This commit is contained in:
@@ -628,6 +628,11 @@ namespace Volian.Controls.Library
|
||||
AddMessageForEmptyAnnotations();
|
||||
cmbResultsStyle.SelectedIndex = 1; //display step locations in results
|
||||
DisplayResults();
|
||||
//If any transitions are listed after the Convert, Admin Tools/Links/Refresh Transitions can be used to fix incorrect links. This will eliminate any in the list.
|
||||
// B2023-103 if any items are left in search list, there may be bad transition link data - put out a message box
|
||||
if (fromTranCvtBtn)
|
||||
FlexibleMessageBox.Show(this, "If items remain in the list after performing Convert All to Text, running Admin Tools/Links/Refresh Transitions will clear the list.",
|
||||
"Convert Transitions to Text", MessageBoxButtons.OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1178,8 +1183,11 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
else
|
||||
{
|
||||
DialogResult ans = FlexibleMessageBox.Show("Are you sure you want to convert the transitions to text?",
|
||||
"Convert Transition to Text", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
// B2023-103 add spinner (WaitCursor) and also, change FlexibleMessageBox to regular MessageBox since restore of cursor to
|
||||
// wait cursor did not work after FlexibleMessageBox
|
||||
Cursor savcursor = Cursor;
|
||||
DialogResult ans = MessageBox.Show(this, "Are you sure you want to convert the transitions to text?", "Convert Transitions to Text", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
this.Cursor = savcursor;
|
||||
if (ans == DialogResult.No) return null;
|
||||
}
|
||||
|
||||
@@ -1254,6 +1262,8 @@ namespace Volian.Controls.Library
|
||||
// C2020-033: For items in list, do the actual conversion of the Incoming Transition to text
|
||||
private void TranCvtToTxt(List<int> itmsEditable)
|
||||
{
|
||||
// B2023-103 Add wait cursor (and remove at end)
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
ItemInfo trII = SearchIncTransII;
|
||||
|
||||
if (trII != null)
|
||||
@@ -1301,6 +1311,7 @@ namespace Volian.Controls.Library
|
||||
|
||||
}
|
||||
}
|
||||
this.Cursor = Cursors.Default;
|
||||
}
|
||||
|
||||
#region (ProgressBar)
|
||||
@@ -3322,9 +3333,15 @@ namespace Volian.Controls.Library
|
||||
// C2020-033: Convert All (that have permissions) Incoming Transitions to text
|
||||
private void btnTranCvtAllToTxt_Click(object sender, EventArgs e)
|
||||
{
|
||||
Cursor = Cursors.WaitCursor;
|
||||
List<int> itmsEditable = TranCvtCheckPermission(true); // Get list based on permissions
|
||||
if (itmsEditable == null || itmsEditable.Count == 0) return;
|
||||
if (itmsEditable == null || itmsEditable.Count == 0)
|
||||
{
|
||||
Cursor = Cursors.Default;
|
||||
return;
|
||||
}
|
||||
TranCvtToTxt(itmsEditable);
|
||||
Cursor = Cursors.Default;
|
||||
fromTranCvtBtn = true;
|
||||
UpdateSearchIncTransResults(); // B2021-009: Research after convert transitions to text
|
||||
fromTranCvtBtn = false;
|
||||
|
Reference in New Issue
Block a user