ReSharper: -CLR types introduced on GTB
This commit is contained in:
@@ -1,58 +1,46 @@
|
||||
using CordonelAssemblyLine.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
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.Shapes;
|
||||
|
||||
namespace CordonelAssemblyLine
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for Picking.xaml
|
||||
/// </summary>
|
||||
public partial class Picking : Window
|
||||
public partial class Picking
|
||||
{
|
||||
|
||||
PickingViewModel Model = new PickingViewModel();
|
||||
CancellationToken GlobalCancellationToken;
|
||||
readonly PickingViewModel _model = new PickingViewModel();
|
||||
readonly CancellationToken _globalCancellationToken;
|
||||
|
||||
string ScannerPort;
|
||||
int SlotNr;
|
||||
public Picking(CancellationToken globalCancellationToken, string scannerPort, int slotNr)
|
||||
readonly String _scannerPort;
|
||||
readonly Int32 _slotNr;
|
||||
public Picking(CancellationToken globalCancellationToken, String scannerPort, Int32 slotNr)
|
||||
{
|
||||
ScannerPort = scannerPort;
|
||||
SlotNr = slotNr;
|
||||
GlobalCancellationToken = globalCancellationToken;
|
||||
DataContext = Model;
|
||||
_scannerPort = scannerPort;
|
||||
_slotNr = slotNr;
|
||||
_globalCancellationToken = globalCancellationToken;
|
||||
DataContext = _model;
|
||||
InitializeComponent();
|
||||
this.Left = SystemParameters.VirtualScreenLeft;
|
||||
this.Top = SystemParameters.VirtualScreenTop +250;
|
||||
this.Height = SystemParameters.VirtualScreenHeight * 0.90;
|
||||
this.Width = SystemParameters.VirtualScreenWidth - SystemParameters.PrimaryScreenWidth;
|
||||
Left = SystemParameters.VirtualScreenLeft;
|
||||
Top = SystemParameters.VirtualScreenTop +250;
|
||||
Height = SystemParameters.VirtualScreenHeight * 0.90;
|
||||
Width = SystemParameters.VirtualScreenWidth - SystemParameters.PrimaryScreenWidth;
|
||||
}
|
||||
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
private void Window_Loaded(Object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
Model.StartPicking(GlobalCancellationToken, ScannerPort, SlotNr);
|
||||
_model.StartPicking(_globalCancellationToken, _scannerPort, _slotNr);
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
private void Window_Closing(Object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
Model.Dispose();
|
||||
this.Title = "";
|
||||
_model.Dispose();
|
||||
Title = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user