aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Commands/OpenCloseDyeingHeadCommand.cs
blob: 5c482e04cc86ada129476d40d95e9ab2cfd61bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Integration.Operation;
using Tango.PMR.Diagnostics;
using Tango.PMR.Hardware;

namespace Tango.PPC.Maintenance.Commands
{
    public class OpenCloseDyeingHeadCommand : OpenCloseMotorCommand
    {
        public OpenCloseDyeingHeadCommand() : base(
            HardwareMotorType.MotoDhLid,
            MotorDirection.Backward,
            400,
            400,
            MotorState.Closed,
            "Opening dyeing head lid...",
            "Closing dyeing head lid...",
            "Error opening dyeing head lid.",
            "Error closing dyeing head lid.",
            "The dyeing head lid is now opened.",
            "The dyeing head lid is now closed."
            )
        {
            
        }
    }
}
span class="k">using static Tango.SharedUI.Controls.NavigationControl; namespace Tango.MachineStudio.UsersAndRoles.Views { /// <summary> /// Interaction logic for UserManagementView.xaml /// </summary> public partial class UserManagementView : UserControl, INavigationView { private MainViewVM _vm; public DraggingSurface DraggingSurface { get { return (DraggingSurface)GetValue(DraggingSurfaceProperty); } set { SetValue(DraggingSurfaceProperty, value); } } public static readonly DependencyProperty DraggingSurfaceProperty = DependencyProperty.Register("DraggingSurface", typeof(DraggingSurface), typeof(UserManagementView), new PropertyMetadata(null)); public UserManagementView() { InitializeComponent(); DraggingSurface = dragSurface; Loaded += (_, __) => _vm = DataContext as MainViewVM; } private void OnDropRole(object sender, DropEventArgs e) { if (e.Draggable.DataContext is Role) { _vm.OnDropRole(e.Draggable.DataContext as Role); } } public void OnNavigatedTo() { address_auto.Text = ""; } public void OnNavigatedFrom() { } } }