时序同步 -- 请求当前时序
This commit is contained in:
parent
ead6ded30d
commit
5c3a9672c0
File diff suppressed because it is too large
Load Diff
@ -17,8 +17,8 @@ namespace InSituLaboratory.ViewModels.Pages
|
||||
public string PageTitle { get; set; } = "页面标题";
|
||||
public bool IsCanClose { get; set; } = true;
|
||||
|
||||
public string SearchKey { get; set; }
|
||||
public string PrimaryKey { get; set; }
|
||||
public string SearchKey { get; set; }
|
||||
public string PrimaryKey { get; set; }
|
||||
|
||||
#region 数据下载实体类
|
||||
|
||||
@ -67,49 +67,30 @@ namespace InSituLaboratory.ViewModels.Pages
|
||||
|
||||
public DelegateCommand<object> SyncCommand { get; set; }//请求当前时序
|
||||
|
||||
public DelegateCommand<object> RefreshSeCommand { get; set; }//时序刷新
|
||||
public DelegateCommand<object> ClearCommand { get; set; }//时序清除
|
||||
public DelegateCommand<object> BeginCommand { get; set; }//时序启动
|
||||
public DelegateCommand<object> SuspendCommand { get; set; }//时序暂停
|
||||
public DelegateCommand<object> SendCommand { get; set; }//时序下发
|
||||
|
||||
#region 时序1-5 刷新 新增/编辑 删除 下发 启动 暂停 清空
|
||||
|
||||
public DelegateCommand RefreshS1Command { get; set; }
|
||||
public DelegateCommand SendS1Command { get; set; }
|
||||
#region 时序1-5 新增/编辑 删除
|
||||
|
||||
public DelegateCommand<object> ModifyS1Command { get; set; }
|
||||
public DelegateCommand<object> DeleteS1Command { get; set; }
|
||||
public DelegateCommand BeginS1Command { get; set; }
|
||||
public DelegateCommand SuspendS1Command { get; set; }
|
||||
public DelegateCommand ClearS1Command { get; set; }
|
||||
|
||||
|
||||
public DelegateCommand RefreshS2Command { get; set; }
|
||||
public DelegateCommand SendS2Command { get; set; }
|
||||
public DelegateCommand<object> ModifyS2Command { get; set; }
|
||||
public DelegateCommand<object> DeleteS2Command { get; set; }
|
||||
public DelegateCommand BeginS2Command { get; set; }
|
||||
public DelegateCommand SuspendS2Command { get; set; }
|
||||
public DelegateCommand ClearS2Command { get; set; }
|
||||
|
||||
public DelegateCommand RefreshS3Command { get; set; }
|
||||
public DelegateCommand SendS3Command { get; set; }
|
||||
public DelegateCommand<object> ModifyS3Command { get; set; }
|
||||
public DelegateCommand<object> DeleteS3Command { get; set; }
|
||||
public DelegateCommand BeginS3Command { get; set; }
|
||||
public DelegateCommand SuspendS3Command { get; set; }
|
||||
public DelegateCommand ClearS3Command { get; set; }
|
||||
|
||||
public DelegateCommand RefreshS4Command { get; set; }
|
||||
public DelegateCommand SendS4Command { get; set; }
|
||||
public DelegateCommand<object> ModifyS4Command { get; set; }
|
||||
public DelegateCommand<object> DeleteS4Command { get; set; }
|
||||
public DelegateCommand BeginS4Command { get; set; }
|
||||
public DelegateCommand SuspendS4Command { get; set; }
|
||||
public DelegateCommand ClearS4Command { get; set; }
|
||||
|
||||
public DelegateCommand RefreshS5Command { get; set; }
|
||||
public DelegateCommand SendS5Command { get; set; }
|
||||
public DelegateCommand<object> ModifyS5Command { get; set; }
|
||||
public DelegateCommand<object> DeleteS5Command { get; set; }
|
||||
public DelegateCommand BeginS5Command { get; set; }
|
||||
public DelegateCommand SuspendS5Command { get; set; }
|
||||
public DelegateCommand ClearS5Command { get; set; }
|
||||
#endregion
|
||||
|
||||
|
||||
@ -128,48 +109,28 @@ namespace InSituLaboratory.ViewModels.Pages
|
||||
StartCommand = new DelegateCommand(DoStart);
|
||||
SynchronizationCommand = new DelegateCommand(DoSynchronization);
|
||||
SyncCommand = new DelegateCommand<object>(DoSync);
|
||||
RefreshSeCommand = new DelegateCommand<object>(DoRefreshSe);
|
||||
ClearCommand = new DelegateCommand<object>(DoClear);
|
||||
BeginCommand = new DelegateCommand<object>(DoBegin);
|
||||
SuspendCommand = new DelegateCommand<object>(DoSuspend);
|
||||
SendCommand = new DelegateCommand<object>(DoSend);
|
||||
|
||||
#region 时序1-5 刷新 新增/编辑 删除 下发 启动 暂停 清空
|
||||
#region 时序1-5 新增/编辑 删除
|
||||
|
||||
RefreshS1Command = new DelegateCommand(RefreshS1);
|
||||
SendS1Command = new DelegateCommand(SendS1);
|
||||
ModifyS1Command = new DelegateCommand<object>(DoModifyS1);
|
||||
DeleteS1Command = new DelegateCommand<object>(DoDeleteS1);
|
||||
BeginS1Command = new DelegateCommand(BeginS1);
|
||||
SuspendS1Command = new DelegateCommand(SuspendS1);
|
||||
ClearS1Command = new DelegateCommand(ClearS1);
|
||||
|
||||
RefreshS2Command = new DelegateCommand(RefreshS2);
|
||||
SendS2Command = new DelegateCommand(SendS2);
|
||||
ModifyS2Command = new DelegateCommand<object>(DoModifyS2);
|
||||
DeleteS2Command = new DelegateCommand<object>(DoDeleteS2);
|
||||
BeginS2Command = new DelegateCommand(BeginS2);
|
||||
SuspendS2Command = new DelegateCommand(SuspendS2);
|
||||
ClearS2Command = new DelegateCommand(ClearS2);
|
||||
|
||||
RefreshS3Command = new DelegateCommand(RefreshS3);
|
||||
SendS3Command = new DelegateCommand(SendS3);
|
||||
ModifyS3Command = new DelegateCommand<object>(DoModifyS3);
|
||||
DeleteS3Command = new DelegateCommand<object>(DoDeleteS3);
|
||||
BeginS3Command = new DelegateCommand(BeginS3);
|
||||
SuspendS3Command = new DelegateCommand(SuspendS3);
|
||||
ClearS3Command = new DelegateCommand(ClearS3);
|
||||
|
||||
RefreshS4Command = new DelegateCommand(RefreshS4);
|
||||
SendS4Command = new DelegateCommand(SendS4);
|
||||
ModifyS4Command = new DelegateCommand<object>(DoModifyS4);
|
||||
DeleteS4Command = new DelegateCommand<object>(DoDeleteS4);
|
||||
BeginS4Command = new DelegateCommand(BeginS4);
|
||||
SuspendS4Command = new DelegateCommand(SuspendS4);
|
||||
ClearS4Command = new DelegateCommand(ClearS4);
|
||||
|
||||
RefreshS5Command = new DelegateCommand(RefreshS5);
|
||||
SendS5Command = new DelegateCommand(SendS5);
|
||||
ModifyS5Command = new DelegateCommand<object>(DoModifyS5);
|
||||
DeleteS5Command = new DelegateCommand<object>(DoDeleteS5);
|
||||
BeginS5Command = new DelegateCommand(BeginS5);
|
||||
SuspendS5Command = new DelegateCommand(SuspendS5);
|
||||
ClearS5Command = new DelegateCommand(ClearS5);
|
||||
#endregion
|
||||
}
|
||||
|
||||
@ -194,53 +155,33 @@ namespace InSituLaboratory.ViewModels.Pages
|
||||
public virtual void DoSynchronization() { }
|
||||
private string PageName { get; set; }
|
||||
public virtual void DoSync(object o) { }
|
||||
public virtual void DoRefreshSe(object o) { }
|
||||
public virtual void DoClear(object o) { }
|
||||
public virtual void DoBegin(object o) { }
|
||||
public virtual void DoSuspend(object o) { }
|
||||
public virtual void DoSend(object o) { }
|
||||
|
||||
|
||||
#region 时序1-5 刷新 新增/编辑 删除 下发 启动 暂停 清空
|
||||
#region 时序1-5 新增/编辑 删除
|
||||
|
||||
public virtual void RefreshS1() { }
|
||||
public virtual void SendS1() { }
|
||||
public virtual void DoModifyS1(object model) { }
|
||||
public virtual void DoDeleteS1(object model) { }
|
||||
public virtual void BeginS1() { }
|
||||
public virtual void SuspendS1() { }
|
||||
public virtual void ClearS1() { }
|
||||
|
||||
|
||||
public virtual void RefreshS2() { }
|
||||
public virtual void SendS2() { }
|
||||
public virtual void DoModifyS2(object model) { }
|
||||
public virtual void DoDeleteS2(object model) { }
|
||||
public virtual void BeginS2() { }
|
||||
public virtual void SuspendS2() { }
|
||||
public virtual void ClearS2() { }
|
||||
|
||||
|
||||
public virtual void RefreshS3() { }
|
||||
public virtual void SendS3() { }
|
||||
public virtual void DoModifyS3(object model) { }
|
||||
public virtual void DoDeleteS3(object model) { }
|
||||
public virtual void BeginS3() { }
|
||||
public virtual void SuspendS3() { }
|
||||
public virtual void ClearS3() { }
|
||||
|
||||
|
||||
public virtual void RefreshS4() { }
|
||||
public virtual void SendS4() { }
|
||||
public virtual void DoModifyS4(object model) { }
|
||||
public virtual void DoDeleteS4(object model) { }
|
||||
public virtual void BeginS4() { }
|
||||
public virtual void SuspendS4() { }
|
||||
public virtual void ClearS4() { }
|
||||
|
||||
|
||||
public virtual void RefreshS5() { }
|
||||
public virtual void SendS5() { }
|
||||
public virtual void DoModifyS5(object model) { }
|
||||
public virtual void DoDeleteS5(object model) { }
|
||||
public virtual void BeginS5() { }
|
||||
public virtual void SuspendS5() { }
|
||||
public virtual void ClearS5() { }
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@ -96,7 +96,15 @@
|
||||
<TextBlock Grid.Column="2" Text="{Binding CurrentSequentiual.Sequentiual1Status}" FontSize="15" Margin="15,0" FontWeight="Normal" VerticalAlignment="Center" />
|
||||
<TextBlock Grid.Column="3" Text="时序2状态:" FontSize="15" Margin="15,0" FontWeight="Normal" Foreground="#00BFFF" VerticalAlignment="Center" />
|
||||
<TextBlock Grid.Column="4" Text="{Binding CurrentSequentiual.Sequentiual2Status}" FontSize="15" Margin="15,0" FontWeight="Normal" VerticalAlignment="Center" />
|
||||
<Button Grid.Column="5" Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="刷新" Grid.Column="5" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,0" Background="#88409EFE" Name="Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="Refresh" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1" Margin="0,20,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
@ -158,7 +166,15 @@
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status1,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshS1Command}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,0" Background="#88409EFE" Name="sequent1Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent1Refresh" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyS1Command}" Tag="" >
|
||||
<Button.Background>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
@ -166,12 +182,46 @@
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
|
||||
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendS1Command}" Width="60" Margin="5,0" Background="#FFA07A"/>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearS1Command}" Width="60" Margin="5,0" Background="#CD8C95"/>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginS1Command}" Width="60" Margin="5,0" Background="#9400D3"/>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendS1Command}" Width="60" Margin="5,0" Background="#CDC0B0"/>
|
||||
<Button Content="同步" Style="{StaticResource NormalButtonStyle}" Command="{Binding SyncCommand}" Width="60" Margin="5,0" Name="sequent1" Background="#CDB5CD">
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand}" Width="60" Margin="5,0" Background="#FFA07A" Name="sequent1Send">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent1Send" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearCommand}" Width="60" Margin="5,0" Background="#CD8C95" Name="sequent1Clear">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent1Clear" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginCommand}" Width="60" Margin="5,0" Background="#9400D3" Name="sequent1Begin">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent1Begin" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendCommand}" Width="60" Margin="5,0" Background="#CDC0B0" Name="sequent1Suspend">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent1Suspend" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="同步" Style="{StaticResource NormalButtonStyle}" Command="{Binding SyncCommand}" Width="60" Margin="5,0" Background="#CDB5CD" Name="sequent1">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
@ -287,7 +337,15 @@
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status2,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshS2Command}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,0" Background="#88409EFE" Name="sequent2Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent2Refresh" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyS2Command}" Tag="" >
|
||||
<Button.Background>
|
||||
@ -297,10 +355,42 @@
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendS2Command}" Width="60" Margin="5,0" Background="#FFA07A"/>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearS2Command}" Width="60" Margin="5,0" Background="#CD8C95"/>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginS2Command}" Width="60" Margin="5,0" Background="#9400D3"/>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendS2Command}" Width="60" Margin="5,0" Background="#CDC0B0"/>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand}" Width="60" Margin="5,0" Background="#FFA07A" Name="sequent2Send">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent2Send" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearCommand}" Width="60" Margin="5,0" Background="#CD8C95" Name="sequent2Clear">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent2Clear" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginCommand}" Width="60" Margin="5,0" Background="#9400D3" Name="sequent2Begin">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent2Begin" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendCommand}" Width="60" Margin="5,0" Background="#CDC0B0" Name="sequent2Suspend">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent2Suspend" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="同步" Style="{StaticResource NormalButtonStyle}" Command="{Binding SyncCommand}" Width="60" Margin="5,0" Name="sequent2" Background="#CDB5CD">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -418,7 +508,15 @@
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status3,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshS3Command}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,0" Background="#88409EFE" Name="sequent3Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent3Refresh" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyS3Command}" Tag="" >
|
||||
<Button.Background>
|
||||
@ -428,10 +526,42 @@
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendS3Command}" Width="60" Margin="5,0" Background="#FFA07A"/>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearS3Command}" Width="60" Margin="5,0" Background="#CD8C95"/>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginS3Command}" Width="60" Margin="5,0" Background="#9400D3"/>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendS3Command}" Width="60" Margin="5,0" Background="#CDC0B0"/>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand}" Width="60" Margin="5,0" Background="#FFA07A" Name="sequent3Send">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent3Send" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearCommand}" Width="60" Margin="5,0" Background="#CD8C95" Name="sequent3Clear">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent3Clear" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginCommand}" Width="60" Margin="5,0" Background="#9400D3" Name="sequent3Begin">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent3Begin" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendCommand}" Width="60" Margin="5,0" Background="#CDC0B0" Name="sequent3Suspend">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent3Suspend" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="同步" Style="{StaticResource NormalButtonStyle}" Command="{Binding SyncCommand}" Width="60" Margin="5,0" Name="sequent3" Background="#CDB5CD">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -548,7 +678,15 @@
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status4,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshS4Command}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,0" Background="#88409EFE" Name="sequent4Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent4Refresh" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyS4Command}" Tag="" >
|
||||
<Button.Background>
|
||||
@ -558,10 +696,42 @@
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendS4Command}" Width="60" Margin="5,0" Background="#FFA07A"/>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearS4Command}" Width="60" Margin="5,0" Background="#CD8C95"/>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginS4Command}" Width="60" Margin="5,0" Background="#9400D3"/>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendS4Command}" Width="60" Margin="5,0" Background="#CDC0B0"/>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand}" Width="60" Margin="5,0" Background="#FFA07A" Name="sequent4Send">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent4Send" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearCommand}" Width="60" Margin="5,0" Background="#CD8C95" Name="sequent4Clear">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent4Clear" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginCommand}" Width="60" Margin="5,0" Background="#9400D3" Name="sequent4Begin">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent4Begin" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendCommand}" Width="60" Margin="5,0" Background="#CDC0B0" Name="sequent4Suspend">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent4Suspend" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="同步" Style="{StaticResource NormalButtonStyle}" Command="{Binding SyncCommand}" Width="60" Margin="5,0" Name="sequent4" Background="#CDB5CD">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -678,7 +848,15 @@
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status5,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshS5Command}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,0" Background="#88409EFE" Name="sequent5Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent5Refresh" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyS5Command}" Tag="" >
|
||||
<Button.Background>
|
||||
@ -688,10 +866,42 @@
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendS5Command}" Width="60" Margin="5,0" Background="#FFA07A"/>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearS5Command}" Width="60" Margin="5,0" Background="#CD8C95"/>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginS5Command}" Width="60" Margin="5,0" Background="#9400D3"/>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendS5Command}" Width="60" Margin="5,0" Background="#CDC0B0"/>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand}" Width="60" Margin="5,0" Background="#FFA07A" Name="sequent5Send">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent5Send" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="清空" Style="{StaticResource NormalButtonStyle}" Command="{Binding ClearCommand}" Width="60" Margin="5,0" Background="#CD8C95" Name="sequent5Clear">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent5Clear" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="启动" Style="{StaticResource NormalButtonStyle}" Command="{Binding BeginCommand}" Width="60" Margin="5,0" Background="#9400D3" Name="sequent5Begin">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent5Begin" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="暂停" Style="{StaticResource NormalButtonStyle}" Command="{Binding SuspendCommand}" Width="60" Margin="5,0" Background="#CDC0B0" Name="sequent5Suspend">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
<MultiBinding.Bindings>
|
||||
<Binding ElementName="sequent5Suspend" Path="Name" />
|
||||
</MultiBinding.Bindings>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
<Button Content="同步" Style="{StaticResource NormalButtonStyle}" Command="{Binding SyncCommand}" Width="60" Margin="5,0" Name="sequent5" Background="#CDB5CD">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user