You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
968 B
31 lines
968 B
using RobotClientWpf.Utilities;
|
|
using System.Windows.Controls;
|
|
|
|
namespace RobotClientWpf.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MainView.xaml
|
|
/// </summary>
|
|
public partial class MainView : UserControl
|
|
{
|
|
private static readonly NLog.Logger log = NLog.LogManager.GetCurrentClassLogger();
|
|
private ChallengeFactory? challenge;
|
|
|
|
public MainView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetChallengeFactory(ChallengeFactory challenge)
|
|
{
|
|
this.challenge = challenge;
|
|
// subscribe to events
|
|
this.challenge.RobotStationary.SplitFlap.SplitFlapDisplayChanged += this.SplitFlap_SplitFlapDisplayChanged;
|
|
}
|
|
|
|
public void SplitFlap_SplitFlapDisplayChanged(object? sender, RobotLib.SplitFlap.SplitFlapDisplayEventArgs e)
|
|
{
|
|
UIAccessHelpers.SetTextboxText(this.tbSplitflapText, e.DisplayMessage);
|
|
}
|
|
}
|
|
}
|
|
|