aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/InternalModuleViewVM.cs
blob: 29e6417f4ddba46a6b97b869a621a8fba5778b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Common;

namespace Tango.PPC.UI.ViewModels
{
    public class InternalModuleViewVM : PPCViewModel
    {
        public override void OnApplicationStarted()
        {
            
        }
    }
}
rols; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace Tango.MachineStudio.UI.Console { /// <summary> /// Interaction logic for ConsoleWindow.xaml /// </summary> public partial class ConsoleWindow : MetroWindow { private ConsoleWindowVM _vm; public ConsoleWindow() { InitializeComponent(); this.Loaded += (_, __) => { _vm = this.DataContext as ConsoleWindowVM; _vm.SetLogTextBox(txtLog); }; } //Auto scroll to bottom of response log each time it is changed. private void TextBox_TextChanged(object sender, TextChangedEventArgs e) { txtLog.SelectionStart = txtLog.Text.Length; txtLog.ScrollToEnd(); } } }