diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-08 13:35:27 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-08 13:35:27 +0300 |
| commit | 57ae9d131e898a35061507bc8497bcf648cf00d1 (patch) | |
| tree | 91e5c55fdcced791f509b24d13c4a73294a295f2 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs | |
| parent | 8dac70e25c92eea8278c564615509386a1a0182d (diff) | |
| download | Tango-57ae9d131e898a35061507bc8497bcf648cf00d1.tar.gz Tango-57ae9d131e898a35061507bc8497bcf648cf00d1.zip | |
Working on machine setup !
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(); } } } |
