| 12345678910111213141516171819202122 |
- using System.Windows;
- namespace MuchInfo.Chart.Infrastructure.Utilities
- {
- public class ControlPair
- {
- public UIElement ControlLeft { get; set; }
- public UIElement ControlRight { get; set; }
- public void SetVisible(bool val)
- {
- if (this.ControlLeft != null)
- {
- this.ControlLeft.Visibility = val ? Visibility.Visible : Visibility.Hidden;
- }
- if (this.ControlRight != null)
- {
- this.ControlRight.Visibility = val ? Visibility.Visible : Visibility.Hidden;
- }
- }
- }
- }
|