aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachineVersionsViewVM.cs
blob: d00fd159392ea900066c2ab120a4527cc9d29e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Notifications;

namespace Tango.MachineStudio.DB.ViewModels
{
    public class MachineVersionsViewVM : DbTableViewModel<MachineVersion>
    {
        public MachineVersionsViewVM(INotificationProvider notification) : base(notification)
        {
            
        }
    }
}
="w"> { OverloadViewer overloadViewer = new OverloadViewer(); /// <summary> /// Creates a new OverloadInsightWindow. /// </summary> public OverloadInsightWindow(TextArea textArea) : base(textArea) { overloadViewer.Margin = new Thickness(2,0,0,0); this.Content = overloadViewer; } /// <summary> /// Gets/Sets the item provider. /// </summary> public IOverloadProvider Provider { get { return overloadViewer.Provider; } set { overloadViewer.Provider = value; } } /// <inheritdoc/> protected override void OnKeyDown(KeyEventArgs e) { base.OnKeyDown(e); if (!e.Handled && this.Provider.Count > 1) { switch (e.Key) { case Key.Up: e.Handled = true; overloadViewer.ChangeIndex(-1); break; case Key.Down: e.Handled = true; overloadViewer.ChangeIndex(+1); break; } if (e.Handled) { UpdateLayout(); UpdatePosition(); } } } } }