添加资源
This commit is contained in:
commit
91212f03d2
10 files changed
+91
-1
No files matched your search
@@ -150,6 +150,9 @@
|
|||||||
<Compile Include="UserControls\DispenseMacInfo.xaml.cs">
|
<Compile Include="UserControls\DispenseMacInfo.xaml.cs">
|
||||||
<DependentUpon>DispenseMacInfo.xaml</DependentUpon>
|
<DependentUpon>DispenseMacInfo.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="WindowsView\UserInf.xaml.cs">
|
||||||
|
<DependentUpon>UserInf.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="WindowsView\UserInformation.xaml.cs">
|
<Compile Include="WindowsView\UserInformation.xaml.cs">
|
||||||
<DependentUpon>UserInformation.xaml</DependentUpon>
|
<DependentUpon>UserInformation.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -289,6 +292,10 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="WindowsView\UserInf.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
<Page Include="WindowsView\UserInformation.xaml">
|
<Page Include="WindowsView\UserInformation.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -525,6 +532,11 @@
|
|||||||
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.css" />
|
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.css" />
|
||||||
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.min.css" />
|
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.min.css" />
|
||||||
<Content Include="Fonts\font-awesome-4.7.0\fonts\fontawesome-webfont.svg" />
|
<Content Include="Fonts\font-awesome-4.7.0\fonts\fontawesome-webfont.svg" />
|
||||||
|
<Resource Include="lmage\IconParkExtend.png" />
|
||||||
|
<Resource Include="lmage\IconParkExtendR.png" />
|
||||||
|
<Resource Include="lmage\IconParkExtendY.png" />
|
||||||
|
<Resource Include="lmage\IconParkInfo.png" />
|
||||||
|
<Resource Include="lmage\IconParkUsbOne.png" />
|
||||||
<Resource Include="lmage\00.png" />
|
<Resource Include="lmage\00.png" />
|
||||||
<Resource Include="lmage\1000-1.png" />
|
<Resource Include="lmage\1000-1.png" />
|
||||||
<Resource Include="lmage\1000-2.png" />
|
<Resource Include="lmage\1000-2.png" />
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void MenuItem_LOCK_XML(object sender, RoutedEventArgs e)
|
private void MenuItem_LOCK_XML(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(machine))
|
||||||
{
|
{
|
||||||
bool mode = MainWindowViewModel.Machines.Select("NAME='" + machine + "'").First().Field<bool>("LOCK");
|
bool mode = MainWindowViewModel.Machines.Select("NAME='" + machine + "'").First().Field<bool>("LOCK");
|
||||||
|
|
||||||
@@ -176,8 +178,11 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
|
|||||||
{
|
{
|
||||||
MessageBox.Show(machine + Properties.Resources.user_unlock, "800", MessageBoxButton.OK, MessageBoxImage.Information);
|
MessageBox.Show(machine + Properties.Resources.user_unlock, "800", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}//锁定
|
}//锁定
|
||||||
private void MenuItem_AUTO_XML(object sender, RoutedEventArgs e)
|
private void MenuItem_AUTO_XML(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(machine))
|
||||||
{
|
{
|
||||||
bool mode = MainWindowViewModel.Machines.Select("NAME='" + machine + "'").First().Field<bool>("AUTO");
|
bool mode = MainWindowViewModel.Machines.Select("NAME='" + machine + "'").First().Field<bool>("AUTO");
|
||||||
|
|
||||||
@@ -204,6 +209,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
|
|||||||
ID = index,
|
ID = index,
|
||||||
DAT = "SC829" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", "ID='" + index + "'") + dat_.ToJsonString()
|
DAT = "SC829" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", "ID='" + index + "'") + dat_.ToJsonString()
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}//手自动
|
}//手自动
|
||||||
private void MenuItem_Stop_XML(object sender, RoutedEventArgs e)
|
private void MenuItem_Stop_XML(object sender, RoutedEventArgs e)
|
||||||
@@ -223,9 +229,11 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
|
|||||||
}
|
}
|
||||||
}//停止
|
}//停止
|
||||||
private void MenuItem_Start_XML(object sender, RoutedEventArgs e)
|
private void MenuItem_Start_XML(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(machine))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}//开始
|
}//开始
|
||||||
private void ListViewItem_DyeingMachine(object sender, MouseButtonEventArgs e)
|
private void ListViewItem_DyeingMachine(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<Window x:Class="SunlightCentralizedControlManagement_SCCM_.WindowsView.UserInf"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.WindowsView"
|
||||||
|
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
|
||||||
|
WindowStartupLocation="CenterScreen"
|
||||||
|
Loaded ="Window_Loaded"
|
||||||
|
ResizeMode="NoResize"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="SUNLIGHT 800" Height="400" Width="800">
|
||||||
|
<Grid>
|
||||||
|
<Grid Margin="0,0,0,100">
|
||||||
|
<TextBox x:Name="INF_DATA" Margin="150,5,5,0" TextWrapping="Wrap" FontSize="30" IsReadOnly="True" BorderBrush="#FF673AB7" BorderThickness="2,2,2,2" />
|
||||||
|
<Image Height="100" Width="100" FlowDirection="LeftToRight" HorizontalAlignment="Left" Margin="25,0,0,0" Source="/Lmage/IconParkInfo.png" VerticalAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
<Button Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Left" Height="45" Margin="50,70,20,20"
|
||||||
|
VerticalAlignment="Bottom" Width="100" Click="YES_Click" HorizontalContentAlignment="Center"/>
|
||||||
|
<Button Content="{x:Static lang:Resources.NO}" HorizontalAlignment="Right" Height="45" Margin="50,70,20,20"
|
||||||
|
VerticalAlignment="Bottom" Width="100" Click="YES_Click"/>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
using SunlightCentralizedControlManagement_SCCM_.ViewModel;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
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.Markup;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Animation;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
using System.Windows.Threading;
|
||||||
|
using System.Xml.Linq;
|
||||||
|
using static SunlightCentralizedControlManagement_SCCM_.UserClass.SqliteHelper;
|
||||||
|
|
||||||
|
namespace SunlightCentralizedControlManagement_SCCM_.WindowsView
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ViewProgram.xaml 的交互逻辑
|
||||||
|
/// </summary>
|
||||||
|
public partial class UserInf : Window
|
||||||
|
{
|
||||||
|
public string Inf_DAT;//信息
|
||||||
|
public UserInf()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
INF_DATA.Text = Inf_DAT;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void YES_Click(object sender, RoutedEventArgs e)//确认
|
||||||
|
{
|
||||||
|
this.Close(); //关闭窗口
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Reference in new issue
Block a user