Skip to content

Commit

Permalink
FlightData: fix quickview highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Dec 12, 2017
1 parent e94cec5 commit 6b8b545
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion GCSViews/FlightData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2880,6 +2880,14 @@ private void zg1_DoubleClick(object sender, EventArgs e)
}
}

selectform.Shown += (o, args) => {
selectform.Controls.ForEach(a =>
{
if (a is CheckBox && ((CheckBox)a).Checked)
((CheckBox)a).BackColor = Color.Green;
});
};

selectform.Show();
}

Expand Down Expand Up @@ -2948,6 +2956,14 @@ private void hud_UserItem(object sender, EventArgs e)
selectform.Controls.Add(chk_box);
}

selectform.Shown += (o, args) => {
selectform.Controls.ForEach(a =>
{
if (a is CheckBox && ((CheckBox)a).Checked)
((CheckBox)a).BackColor = Color.Green;
});
};

selectform.ShowDialog(this);
}

Expand Down Expand Up @@ -3329,9 +3345,14 @@ private void quickView_DoubleClick(object sender, EventArgs e)
if (chk_box.Checked)
chk_box.BackColor = Color.Green;
selectform.Controls.Add(chk_box);
Application.DoEvents();
}

selectform.Shown += (o, args) => { selectform.Controls.ForEach(a =>
{
if (a is CheckBox && ((CheckBox) a).Checked)
((CheckBox) a).BackColor = Color.Green;
}); };

selectform.ShowDialog(this);
}

Expand Down

0 comments on commit 6b8b545

Please sign in to comment.