using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Tango.BL; using Tango.BL.Entities; using Tango.Core.DI; using Tango.PPC.Jobs.Models; using Tango.PPC.Jobs.ViewContracts; using Tango.PPC.Jobs.ViewModels; using static Tango.SharedUI.Controls.NavigationControl; namespace Tango.PPC.Jobs.Views { /// /// Interaction logic for JobView.xaml /// public partial class JobView : UserControl, INavigationView, IJobView { private JobViewVM _vm; public JobView() { InitializeComponent(); Loaded += (_, __) => { _vm = DataContext as JobViewVM; }; TangoIOC.Default.Register(this); } public void OnNavigatedTo() { } public void OnNavigatedFrom() { } private void Length_ValueChanged(object sender, Touch.Controls.DoubleValueChangedEventArgs e) { var segmentModel = (sender as FrameworkElement).DataContext as SegmentModel; if(segmentModel != null) { segmentModel.LengthChanged(e.Value); } } private void Length_BeforeChangeValue(object sender, Touch.Controls.DoubleValueChangedEventArgs e) { var segmentModel = (sender as FrameworkElement).DataContext as SegmentModel; if (segmentModel != null) { segmentModel.LengthBeforeChange(e.Value); } } public void DisplaySampleDye() { } public void DisplayFineTuning() { } public void ScrollToTop() { } } }