Compare commits
No commits in common. "1ba4c4f343df1f8abfe75a775eebcfa6546a2dc3" and "0c17d9abc2d432bf1134316dc2887c5f8ea3ac4b" have entirely different histories.
1ba4c4f343
...
0c17d9abc2
@ -1192,27 +1192,14 @@ namespace ctlXMLEditLib
|
|||||||
// C2021-026 Event handler for Parent/Child child textbox
|
// 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
|
// 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
|
// 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)
|
private void txtBox_Leave(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
TextBox tb = sender as TextBox;
|
TextBox tb = sender as TextBox;
|
||||||
string dfTxt = "";
|
string dfTxt = "";
|
||||||
try
|
string parName = pcGrpBox.Name.Substring(5);
|
||||||
{
|
object o = myHT[parName];
|
||||||
ctlXMLEdit tmp = (ctlXMLEdit)tb?.Parent;
|
if (o != null)
|
||||||
if (!string.IsNullOrEmpty(tmp?.ActiveControl.Text))
|
dfTxt = (o as TextBox).Text; // set to use the parent's value (default)
|
||||||
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 (dosaveflag) mysavexml = true;
|
||||||
if (tb.Text.Length == 0 || tb.Text == dfTxt)
|
if (tb.Text.Length == 0 || tb.Text == dfTxt)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user