You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
247 lines
8.5 KiB
C#
247 lines
8.5 KiB
C#
using Aucma.Core.OldBoxFoam.ViewModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
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;
|
|
|
|
namespace Aucma.Core.OldBoxFoam.Views
|
|
{
|
|
/// <summary>
|
|
/// OldBoxFoamPageView.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class OldBoxFoamPageView : UserControl
|
|
{
|
|
public OldBoxFoamPageView()
|
|
{
|
|
InitializeComponent();
|
|
this.DataContext = new OldBoxFoamPageViewModel();
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type1.Text;
|
|
int fixCode = 1;
|
|
var plcId = 1;
|
|
var plcAddress = "D3140";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_2(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type2.Text;
|
|
int fixCode = 2;
|
|
var plcId = 1;
|
|
var plcAddress = "D3142";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_3(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type3.Text;
|
|
int fixCode = 3;
|
|
var plcId = 1;
|
|
var plcAddress = "D3144";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_4(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type4.Text;
|
|
int fixCode = 4;
|
|
var plcId = 1;
|
|
var plcAddress = "D3148";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_5(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type5.Text;
|
|
int fixCode = 5;
|
|
var plcId = 1;
|
|
var plcAddress = "D3150";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_6(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type6.Text;
|
|
int fixCode = 6;
|
|
var plcId = 1;
|
|
var plcAddress = "D3152";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_7(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type7.Text;
|
|
int fixCode = 7;
|
|
var plcId = 2;
|
|
var plcAddress = "D3140";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_8(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type8.Text;
|
|
int fixCode = 8;
|
|
var plcId = 2;
|
|
var plcAddress = "D3142";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_9(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type9.Text;
|
|
int fixCode = 9;
|
|
var plcId = 2;
|
|
var plcAddress = "D3144";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_10(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type10.Text;
|
|
int fixCode = 10;
|
|
var plcId = 2;
|
|
var plcAddress = "D3148";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_11(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type11.Text;
|
|
int fixCode = 11;
|
|
var plcId = 2;
|
|
var plcAddress = "D3150";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_12(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type12.Text;
|
|
int fixCode = 12;
|
|
var plcId = 2;
|
|
var plcAddress = "D3152";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_13(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type13.Text;
|
|
int fixCode = 13;
|
|
var plcId = 3;
|
|
var plcAddress = "D3140";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_14(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type14.Text;
|
|
int fixCode = 14;
|
|
var plcId = 3;
|
|
var plcAddress = "D3142";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_15(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type15.Text;
|
|
int fixCode = 15;
|
|
var plcId = 3;
|
|
var plcAddress = "D3144";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_16(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type16.Text;
|
|
int fixCode = 16;
|
|
var plcId = 3;
|
|
var plcAddress = "D3148";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_17(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type17.Text;
|
|
int fixCode = 17;
|
|
var plcId = 3;
|
|
var plcAddress = "D3150";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_18(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type18.Text;
|
|
int fixCode = 18;
|
|
var plcId = 3;
|
|
var plcAddress = "D3152";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_19(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type19.Text;
|
|
int fixCode = 19;
|
|
var plcId = 4;
|
|
var plcAddress = "D3140";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_20(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type20.Text;
|
|
int fixCode = 20;
|
|
var plcId = 4;
|
|
var plcAddress = "D3142";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_21(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type21.Text;
|
|
int fixCode = 21;
|
|
var plcId = 4;
|
|
var plcAddress = "D3144";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_22(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type22.Text;
|
|
int fixCode = 22;
|
|
var plcId = 4;
|
|
var plcAddress = "D3148";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_23(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type23.Text;
|
|
int fixCode = 23;
|
|
var plcId = 4;
|
|
var plcAddress = "D3150";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
|
|
private void Border_MouseLeftButtonDown_24(object sender, MouseButtonEventArgs e)
|
|
{
|
|
var boxTypeStr = this.Type24.Text;
|
|
int fixCode = 24;
|
|
var plcId = 4;
|
|
var plcAddress = "D3152";
|
|
OldBoxFoamPageViewModel.MouseClick(boxTypeStr, plcId, plcAddress);
|
|
}
|
|
}
|
|
}
|