Compare commits
3 Commits
0c17d9abc2
...
B2025-031
Author | SHA1 | Date | |
---|---|---|---|
24d5cee8b4 | |||
1ba4c4f343 | |||
700d9656b2 |
@@ -1192,14 +1192,27 @@ namespace ctlXMLEditLib
|
||||
// C2021-026 Event handler for Parent/Child child textbox
|
||||
// if the textbox text is same as parent, then or nothing is entered in the textbox
|
||||
// then use the parent value and set the text color to gray
|
||||
// B2025-028 RO Editor - Parent Child Applicability - Default Values
|
||||
// Were always setting to the Group parent value instead of individual parent values
|
||||
// When leaving the textbox
|
||||
private void txtBox_Leave(object sender, EventArgs e)
|
||||
{
|
||||
TextBox tb = sender as TextBox;
|
||||
string dfTxt = "";
|
||||
try
|
||||
{
|
||||
ctlXMLEdit tmp = (ctlXMLEdit)tb?.Parent;
|
||||
if (!string.IsNullOrEmpty(tmp?.ActiveControl.Text))
|
||||
dfTxt = tmp.ActiveControl.Text;
|
||||
}
|
||||
catch
|
||||
{
|
||||
string parName = pcGrpBox.Name.Substring(5);
|
||||
object o = myHT[parName];
|
||||
if (o != null)
|
||||
dfTxt = (o as TextBox).Text; // set to use the parent's value (default)
|
||||
}
|
||||
|
||||
if (dosaveflag) mysavexml = true;
|
||||
if (tb.Text.Length == 0 || tb.Text == dfTxt)
|
||||
{
|
||||
|
@@ -3588,7 +3588,9 @@ namespace Volian.Controls.Library
|
||||
if (tmp.MyDisplayTabControl.MyCopyStep != null &&
|
||||
tmp.MyDisplayTabControl.MyCopyStep.ItemID == MyEditItem.MyItemInfo.ItemID)
|
||||
{
|
||||
if (FlexibleMessageBox.Show("Are you sure?\n\nIf you delete this step you will not able to paste it.\nYou should paste it before you delete it.", "Attempting to delete copied step.", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
|
||||
//B2025-031 - Improve wording for if attempting to delete copied section
|
||||
string stype = MyEditItem.MyItemInfo.IsSection ? "section" : "step";
|
||||
if (FlexibleMessageBox.Show($"Are you sure?\n\nIf you delete this {stype} you will not able to paste it.\nYou should paste it before you delete it.", $"Attempting to delete copied {stype}.", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
|
||||
clearCopyStep = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user