diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs index b27d835a8..a2c20ecc2 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs @@ -12,17 +12,28 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; +using Tango.PPC.UI.ViewsContracts; namespace Tango.PPC.UI.Views { /// <summary> /// Interaction logic for MachineSetupView.xaml /// </summary> - public partial class MachineSetupView : UserControl + public partial class MachineSetupView : UserControl, IMachineSetupView { + public static MachineSetupView Instance { get; set; } + public MachineSetupView() { InitializeComponent(); + Instance = this; + } + + public void AppendLog(string log) + { + txtLog.AppendText(log); + txtLog.SelectionStart = txtLog.Text.Length; + txtLog.ScrollToEnd(); } } } |
