Commit 97f0631e authored by 潘栩锋's avatar 潘栩锋 🚴

删除多余的 Project.FLY.Thick.Normal

parent e0d1a128
<Application x:Class="FLY.Thick.Normal.UI.Client.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml" >
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.en-US.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>
<ResourceDictionary Source="Culture/StringResource.en-US.xaml"/>
<ResourceDictionary Source="Culture/StringResource.zh-CN.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Diagnostics;
namespace FLY.Thick.Normal.UI.Client
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
FLY.AppHelper.AppJustOne appjustone;
public App()
{
appjustone = new AppHelper.AppJustOne(this);
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
string err = e.ExceptionObject.ToString();
Misc.Log.LogMessage("App", 0, err);
MessageBox.Show("程序出现异常,请把下面信息拍照发给厂家" + Environment.NewLine + err,
"异常,联系厂家",
MessageBoxButton.OK, MessageBoxImage.Error);
};
ThickTcpUiInWindow.App.UpdateCulture(@"Culture/StringResource.");
ThickTcpUiInWindow.App.UpdateCulture(@"/ThickTcpUiInWindow;component/Culture/StringResource.");
}
}
}
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="strScanGraphCoslight">Scan Graph-coslight</sys:String>
<sys:String x:Key="strTrendGraphCoslight">Trend Graph-coslight</sys:String>
<sys:String x:Key="strBulkDataGridCoslight">BulkData-coslight</sys:String>
<sys:String x:Key="strBulkDataGrid">BulkData</sys:String>
<sys:String x:Key="strShowRowCnt">DispRows</sys:String>
<sys:String x:Key="strFontSize">FontSize</sys:String>
</ResourceDictionary>
\ No newline at end of file
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="strScanGraphCoslight">光宇扫描图</sys:String>
<sys:String x:Key="strTrendGraphCoslight">光宇趋势图</sys:String>
<sys:String x:Key="strBulkDataGridCoslight">光宇数据表</sys:String>
<sys:String x:Key="strBulkDataGrid">数据表</sys:String>
<sys:String x:Key="strShowRowCnt">显示行数</sys:String>
<sys:String x:Key="strFontSize">字体大小</sys:String>
</ResourceDictionary>
\ No newline at end of file
<NavigationWindow x:Class="FLY.Thick.Normal.UI.Client.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:FLY.Thick.Normal.UI.Client"
Title="佛山市枫莱尔自动化技术有限公司"
WindowState="Maximized" Icon="/FLY.Thick.Normal.UI.Client;component/123.ico"
Height="768" Width="1024" ShowsNavigationUI="False" Loaded="NavigationWindow_Loaded">
<NavigationWindow.CommandBindings>
<CommandBinding Command="local:GageCommands.Scan" Executed="CommandBindingScan_Executed"/>
<CommandBinding Command="local:GageCommands.Stop" Executed="CommandBindingStop_Executed"/>
<CommandBinding Command="local:GageCommands.Forward" Executed="CommandBindingForw_Executed"/>
<CommandBinding Command="local:GageCommands.Backward" Executed="CommandBindingBackw_Executed"/>
<CommandBinding Command="local:GageCommands.Org" Executed="CommandBindingOrg_Executed"/>
</NavigationWindow.CommandBindings>
</NavigationWindow>
<Page x:Class="FLY.Thick.Normal.UI.Client.Page_CoatingWidthDetection"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1024"
Loaded="Page_Loaded" Unloaded="Page_Unloaded"
Title="Page_CoatingWidthDetection">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<Grid Name="grid_null"/>
<StackPanel Orientation="Horizontal" Background="{StaticResource Background_Title}">
<Button Style="{StaticResource ButtonStyle_back2}" Command="BrowseBack"/>
<TextBlock Style="{StaticResource TextBlockStyle_Title}" Text="涂宽测量"/>
</StackPanel>
<Grid Grid.Row="1" Margin="0,5,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition/>
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Button Style="{StaticResource ResourceKey=ButtonStyle3}" Width="150" Margin="0,5,5,5" Click="button_apply_Click" >
<TextBlock Style="{StaticResource TextBlockStyle_ItemHeader}" Text="参数&#x0a;应用"/>
</Button>
<WrapPanel Orientation="Horizontal" Grid.Column="1">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="使能" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding Enable}" />
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="信号平移" />
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding SignHOffset}" HorizontalAlignment="Left"/>
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm_interval}" Text="|"/>
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" >
<Run>
<MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F0}">
<Binding Path="SignHOffset" />
<Binding Path="DataContext.Encoder1_mmpp" ElementName="grid_null"/>
</MultiBinding>
</Run>
<Run Text="mm"/>
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="混合数" />
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding Mix}" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader}" Text="膜宽" />
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}">
<Run>
<MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F1}">
<Binding Path="Width" />
<Binding Path="DataContext.Encoder1_mmpp" ElementName="grid_null"/>
</MultiBinding>
</Run>
</TextBlock>
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" >
<Run Text="mm"/>
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader}" Text="涂宽" />
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}">
<Run>
<MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F1}">
<Binding Path="CoatingWidth" />
<Binding Path="DataContext.Encoder1_mmpp" ElementName="grid_null"/>
</MultiBinding>
</Run>
</TextBlock>
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" >
<Run Text="mm"/>
</TextBlock>
</StackPanel>
</StackPanel>
</WrapPanel>
</Grid>
<Grid Grid.Row="2" Margin="0,5,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Width="150" Background="{StaticResource Color_theme_activity}" Margin="0,5,5,5" >
<TextBlock Style="{StaticResource TextBlockStyle_ItemHeader}" Text="调试" />
</Border>
<Grid Grid.Column="1" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<WrapPanel Orientation="Horizontal" Grid.Column="1">
<Button Content="保存" Style="{StaticResource ResourceKey=ButtonStyle2}" Margin="5" Height="75" Width="140" Click="button_save_Click"/>
</WrapPanel>
<WindowsFormsHost Grid.Row="1" Margin="5">
<Chr:Chart x:Name="chart1"/>
</WindowsFormsHost>
</Grid>
</Grid>
</Grid>
</Page>
<Page x:Class="FLY.Thick.Normal.UI.Client.Page_ConfigOpt"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FLY.Thick.Normal.UI.Client"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1024"
Loaded="Page_Loaded" Unloaded="Page_Unloaded"
Background="White"
Title="Page_WarningSystem">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Background="{StaticResource Background_Title}">
<Button Style="{StaticResource ButtonStyle_back2}" Command="BrowseBack"/>
<TextBlock Style="{StaticResource TextBlockStyle_Title}" Text="功能配置"/>
</StackPanel>
<StackPanel Grid.Row="1" Margin="0,5,0,5" Orientation="Vertical">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition/>
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Button Style="{StaticResource ResourceKey=ButtonStyle3}" Width="150" Margin="0,5,5,5" Click="button_apply_Click" >
<TextBlock Style="{StaticResource TextBlockStyle_ItemHeader}" Text="功能&#x0a;应用"/>
</Button>
<StackPanel Orientation="Vertical" Grid.Column="1">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="机架校正" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding HaveScanCorr}" />
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="段长测量" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding HaveSegment}" />
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="涂宽测量" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding HaveCoatingWidth}" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="设置产品&#x0a;需要密码" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsProfileNeededPW}" HorizontalAlignment="Left"/>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="设置产品补偿&#x0a;需要密码" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsProfileABLocked}" HorizontalAlignment="Left"/>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</Page>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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 System.Collections.ObjectModel;
namespace FLY.Thick.Normal.UI.Client
{
/// <summary>
/// Page_Config.xaml 的交互逻辑
/// </summary>
public partial class Page_ConfigOpt : Page
{
SysParam msysparam;
public Page_ConfigOpt()
{
InitializeComponent();
}
private void button_apply_Click(object sender, RoutedEventArgs e)
{
msysparam.Save();
FLY.ControlLibrary.Window_Tip.Show("应用成功",
null,
TimeSpan.FromSeconds(2));
}
public void Init(SysParam sysparam)
{
msysparam = sysparam;
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
this.DataContext = msysparam;
}
private void Page_Unloaded(object sender, RoutedEventArgs e)
{
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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 FLY.Thick.Base.Common;
using ThickTcpUiInWindow;
using ThickTcpUiInWindow.Converter;
namespace FLY.Thick.Normal.UI.Client
{
/// <summary>
/// Page_Custom.xaml 的交互逻辑
/// </summary>
public partial class Page_Custom : Page
{
SysParam msysparam;
TDGage gage;
public Page_Custom()
{
InitializeComponent();
}
public void Init(TDGage gage)
{
this.gage = gage;
msysparam = (SysParam)gage.mSysParam;
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
this.DataContext = msysparam;
}
private void button_opt_Click(object sender, RoutedEventArgs e)
{
if (Window_Password.Authorize(1))
{
Page_ConfigOpt p = new Page_ConfigOpt();
p.Init(msysparam);
NavigationService.Navigate(p);
}
}
private void button_play_Click(object sender, RoutedEventArgs e)
{
//报警!!!!!!!!
FLY.ControlLibrary.Window_WarningTip.Show(
"测试",
msysparam.WarningTipPath+" duration=5s",
TimeSpan.FromSeconds(5),
msysparam.WarningTipPath);
}
private void button_open_Click(object sender, RoutedEventArgs e)
{
System.Windows.Forms.FileDialog open = new System.Windows.Forms.OpenFileDialog();
open.Filter = "mp3文件|*.mp3|wav文件|*.wav|所有文件|*.*";
open.Title = "打开音乐文件";
if (System.IO.Path.IsPathRooted(msysparam.WarningTipPath))
open.InitialDirectory = System.IO.Path.GetDirectoryName(msysparam.WarningTipPath);
else
open.InitialDirectory = System.Environment.CurrentDirectory;
if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
if (open.FileName.StartsWith(System.Environment.CurrentDirectory))
{
msysparam.WarningTipPath = open.FileName.Substring(System.Environment.CurrentDirectory.Length + 1);
}
else
{
msysparam.WarningTipPath = open.FileName;
}
}
}
private void button_filebus_Click(object sender, RoutedEventArgs e)
{
//Window_testFileBus window = new Window_testFileBus();
//window.Init(gage.mSysParam.ServerIPEP);
//window.ShowDialog();
}
private void button_bulkdata_Click(object sender, RoutedEventArgs e)
{
gage.mBulkDataClient.Clear();
}
private void button_clear_Click(object sender, RoutedEventArgs e)
{
}
private void button_apply_Click(object sender, RoutedEventArgs e)
{
msysparam.Save();
gage.Init2();
FLY.ControlLibrary.Window_Tip.Show("成功", "保存成功!!",
TimeSpan.FromSeconds(2));
return;
}
}
}
<Page x:Class="FLY.Thick.Normal.UI.Client.Page_GageInfo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
xmlns:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
d:DesignHeight="768" d:DesignWidth="1024"
Loaded="Page_Loaded" Unloaded="Page_Unloaded"
Title="Page_GageInfo">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid Name="grid_null"/>
<StackPanel Orientation="Horizontal" Background="{StaticResource Background_Title}">
<Button Style="{StaticResource ButtonStyle_back2}" Command="BrowseBack"/>
<TextBlock Style="{StaticResource TextBlockStyle_Title}" Text="机架信息"/>
</StackPanel>
<Grid Grid.Row="1" Margin="0,5,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Width="150" Margin="0,5,5,5" Click="button_start_Click" >
<TextBlock Text="录制" >
<TextBlock.Style>
<Style BasedOn="{StaticResource TextBlockStyle_ItemHeader}" TargetType="TextBlock">
<Style.Triggers>
<DataTrigger Binding="{Binding IsRunning}" Value="True">
<Setter Property="Text" Value="停止"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<Button.Style>
<Style BasedOn="{StaticResource ResourceKey=ButtonStyle3}" TargetType="Button">
<Style.Triggers>
<DataTrigger Binding="{Binding IsRunning}" Value="True">
<Setter Property="Background" Value="#FFF92626"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Grid Grid.Column="1" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<ProgressBar Name="progressBar1" VerticalAlignment="Top" Height="10" Value="{Binding Progress}"/>
<WindowsFormsHost Grid.Row="1" >
<Chr:Chart x:Name="chart1"/>
</WindowsFormsHost>
</Grid>
</Grid>
</Grid>
</Page>
<Page x:Class="FLY.Thick.Normal.UI.Client.Page_Menu"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1388"
Background="White"
Title="Page_Menu">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="540*" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<Button Style="{StaticResource ButtonStyle_back}" Command="BrowseBack"/>
</StackPanel>
<StackPanel Orientation="Horizontal" FlowDirection="RightToLeft">
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
<Button x:Name="button_version" Style="{StaticResource ButtonStyle_empty}" Background="{x:Null}" Click="button_version_Click" VerticalAlignment="Center">
<TextBlock Text="{Binding Version}" FontSize="24" FontWeight="Bold" Margin="5" />
</Button>
<Button Style="{StaticResource ButtonStyle_empty}" Background="{x:Null}" Click="button_instruction_Click" VerticalAlignment="Center">
<TextBlock Text="说明书" FontSize="24" FontWeight="Bold" Margin="5" />
</Button>
</StackPanel>
</StackPanel>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="100" />
</Grid.RowDefinitions>
<WrapPanel Orientation="Vertical" Grid.Column="1">
<WrapPanel.Resources>
<Style TargetType="Button" BasedOn="{StaticResource ResourceKey=ButtonStyle_empty}">
<Setter Property="Background" Value="#FF0083D7"/>
<Setter Property="Width" Value="225"/>
<Setter Property="Height" Value="140"/>
<Setter Property="Margin" Value="5"/>
</Style>
</WrapPanel.Resources>
<Button Click="button_custom_Click">
<Grid>
<Image Source="/ThickTcpUiInWindow;component/Images/bg_wheel.jpg" Stretch="UniformToFill" />
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="客户配置" Background="#C00083D7" Padding="10"/>
</Grid>
</Button>
<Button Click="button_initparam_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="系统参数"/>
</TextBlock>
</Button>
<Button Click="button_curve_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="AD曲线"/>
</TextBlock>
</Button>
<Button Click="button_curve2_Click" Background="Purple">
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" >
<Run Foreground="White" FontSize="40" Text="AD曲线"/>
<Run Foreground="White" FontSize="20" Text="修正"/>
</TextBlock>
</Button>
<Button Click="button_boltmap_Click" >
<Grid>
<Image Source="/ThickTcpUiInWindow;component/Images/bg_ruler.jpg" Stretch="UniformToFill" />
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="分区设置" Background="#C00083D7" Padding="10"/>
</Grid>
</Button>
<Button Click="button_bordersearch_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="边界查找"/>
</TextBlock>
</Button>
<Button Click="button_getsample_Click" >
<Grid>
<Image Source="/ThickTcpUiInWindow;component/Images/bg_sample.jpg" Stretch="UniformToFill" />
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="样品标定" Background="#C00083D7" Padding="10"/>
</Grid>
</Button>
<Button Click="button_reject_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="剔除功能"/>
</TextBlock>
</Button>
<Button Click="button_coatingwidth_Click" Visibility="{Binding HaveCoatingWidth,Converter={StaticResource ResourceKey=visbilityconv},ConverterParameter=Collapsed}">
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="涂宽测量"/>
</TextBlock>
</Button>
<Button Click="button_gageinfo_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="机架信息"/>
</TextBlock>
</Button>
<Button Click="button_scancorr_Click" Visibility="{Binding HaveScanCorr,Converter={StaticResource ResourceKey=visbilityconv},ConverterParameter=Collapsed}">
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<Run Foreground="White" FontSize="40" Text="机架修正"/>
</TextBlock>
</Button>
<Button Click="button_warning_Click" Background="Red" >
<Grid>
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="报警管理" Padding="10"/>
</Grid>
</Button>
<Button Click="button_scanwarning_Click" Background="Red" >
<Grid>
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="扫描报警" Padding="10"/>
</Grid>
</Button>
<Button Click="button_grid_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" >
<Run Foreground="White" FontSize="40" Text="机架调试"/>
</TextBlock>
</Button>
<Button Click="button_flyad_Click">
<Grid>
<Image Source="/ThickTcpUiInWindow;component/Images/bg_chip.jpg" Stretch="UniformToFill" />
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="控制器" Background="#C00083D7" Padding="10"/>
</Grid>
</Button>
<Button Click="button_passwork_Click">
<Grid>
<Image Source="/ThickTcpUiInWindow;component/Images/timg.jpg" Stretch="UniformToFill" />
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="密码管理" Background="#C00083D7" Padding="10"/>
</Grid>
</Button>
</WrapPanel>
</Grid>
</ScrollViewer>
</Grid>
</Page>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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 ThickTcpUiInWindow;
namespace FLY.Thick.Normal.UI.Client
{
/// <summary>
/// Page_Menu.xaml 的交互逻辑
/// </summary>
public partial class Page_Menu : Page
{
TDGage gage;
public Page_Menu()
{
InitializeComponent();
}
public void Init(TDGage gage)
{
this.gage = gage;
this.DataContext = this.gage.mSysParam;
this.button_version.DataContext = gage;
}
private void button_custom_Click(object sender, RoutedEventArgs e)
{
Page_Custom p = new Page_Custom();
p.Init(gage);
NavigationService.Navigate(p);
}
private void button_grid_Click(object sender, RoutedEventArgs e)
{
Page_Grid p = new Page_Grid();
p.Init(gage.mSysParam.ServerIPEP, gage.mDynArea, gage.mTDGageService, gage.mInitParamService);
NavigationService.Navigate(p);
}
private void button_initparam_Click(object sender, RoutedEventArgs e)
{
Page_Initparam p = new Page_Initparam();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_getsample_Click(object sender, RoutedEventArgs e)
{
Page_GetSample p = new Page_GetSample();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_bordersearch_Click(object sender, RoutedEventArgs e)
{
Page_BorderSearch p = new Page_BorderSearch();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_curve_Click(object sender, RoutedEventArgs e)
{
Page_Curve p = new Page_Curve();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_boltmap_Click(object sender, RoutedEventArgs e)
{
Page_BoltMapEasy p = new Page_BoltMapEasy();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_reject_Click(object sender, RoutedEventArgs e)
{
Page_Reject p = new Page_Reject();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_scancorr_Click(object sender, RoutedEventArgs e)
{
Page_ScanCorr p = new Page_ScanCorr();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_warning_Click(object sender, RoutedEventArgs e)
{
Page_WarningSystem p = new Page_WarningSystem();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_scanwarning_Click(object sender, RoutedEventArgs e)
{
Page_ScanWarning p = new Page_ScanWarning();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_gageinfo_Click(object sender, RoutedEventArgs e)
{
Page_GageInfo p = new Page_GageInfo();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_flyad_Click(object sender, RoutedEventArgs e)
{
Page_FlyAD p = new Page_FlyAD();
p.Init(gage.mSysParam.ServerIPEP, gage.mDynArea, gage.mTDGageService);
NavigationService.Navigate(p);
}
private void button_passwork_Click(object sender, RoutedEventArgs e)
{
if (Window_Password.Authorize(1))
{
Window_PasswordEdit w = new Window_PasswordEdit();
w.Init(gage.mSysParam.ServerIPEP);
if (w.ShowDialog()==true)
{
}
}
}
private void button_version_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start(@"版本说明.txt");
}
private void button_curve2_Click(object sender, RoutedEventArgs e)
{
Page_CurveModify p = new Page_CurveModify();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
private void button_instruction_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start(@"测厚仪说明书.pdf");
}
private void button_coatingwidth_Click(object sender, RoutedEventArgs e)
{
Page_CoatingWidthDetection p = new Page_CoatingWidthDetection();
p.Init(gage.mSysParam.ServerIPEP);
NavigationService.Navigate(p);
}
}
}
<Page x:Class="FLY.Thick.Normal.UI.Client.Page_MultiFix"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:my="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="782"
>
<Page.Resources>
<ResourceDictionary>
<ControlTemplate x:Key="picture_button" TargetType="Button">
<Border Name="border" BorderThickness="1" CornerRadius="5">
<ContentPresenter Content="{TemplateBinding Content}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="LightBlue"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background" Value="LightGray"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/MaterialDesignIcons.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid Name="grid" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="258*" />
</Grid.RowDefinitions>
<Rectangle Name="rectangle" Fill="{StaticResource Color_theme_activity}" Margin="0,0,0,4" >
<Rectangle.Style>
<Style TargetType="Rectangle" >
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="Black" Direction="270" ShadowDepth="1" Opacity="0.23" />
</Setter.Value>
</Setter>
</Style>
</Rectangle.Style>
</Rectangle>
<StackPanel Orientation="Horizontal" Margin="5" Name="stackpanel_state">
<StackPanel Orientation="Horizontal" Margin="10,0">
<StackPanel.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Margin" Value="10,0"/>
<Setter Property="Background" Value="Black" />
</Style>
<Style TargetType="{x:Type Path}">
<Setter Property="Fill" Value="White"/>
<Setter Property="Stretch" Value="Uniform"/>
<Setter Property="Width" Value="30"/>
<Setter Property="Height" Value="30"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
</Style>
</StackPanel.Resources>
<Button Click="button_info_Click" Template="{StaticResource ResourceKey=picture_button}" >
<Grid Background="{StaticResource ResourceKey=Color_theme_activity}">
<Path Data="{StaticResource Geometry_information-outline}" />
</Grid>
</Button>
</StackPanel>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" Margin="5">
<TextBlock.Inlines>
<Run Name="run_title" Text="选点图" FontWeight="SemiBold" FontSize="24" />
</TextBlock.Inlines>
</TextBlock>
</StackPanel>
<WindowsFormsHost Grid.Row="1">
<Chr:Chart x:Name="chart1" />
</WindowsFormsHost>
</Grid>
</Page>
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("测厚仪客户端")]
[assembly: AssemblyDescription("测厚仪.客户端.界面")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("枫莱尔自动化技术有限公司")]
[assembly: AssemblyProduct("枫莱尔--基本型测厚仪客户端")]
[assembly: AssemblyCopyright("Copyright © 2018 FLYAutomation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
//若要开始生成可本地化的应用程序,请在
//<PropertyGroup> 中的 .csproj 文件中
//设置 <UICulture>CultureYouAreCodingWith</UICulture>。例如,如果您在源文件中
//使用的是美国英语,请将 <UICulture> 设置为 en-US。然后取消
//对以下 NeutralResourceLanguage 特性的注释。更新
//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //主题特定资源词典所处位置
//(在页面或应用程序资源词典中
// 未找到某个资源的情况下使用)
ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
//(在页面、应用程序或任何主题特定资源词典中
// 未找到某个资源的情况下使用)
)]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
[assembly: GuidAttribute("DF5AE0C9-1E98-40F4-8A38-F1B9C14B7EFE")]
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment