Browse Source

状态图标添加

master
sc 4 months ago
parent
commit
d2cbf4c7d1
  1. 4
      DyeingComputer.csproj
  2. BIN
      Fonts/LOCK.png
  3. BIN
      Fonts/link.png
  4. BIN
      LOCK.png
  5. 7
      MainWindow.xaml
  6. 4
      Properties/Resources.zh-TW.resx
  7. 3
      ViewModel/MainWindowViewModel.cs
  8. BIN
      link.png

4
DyeingComputer.csproj

@ -413,6 +413,10 @@
<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\fonts\fontawesome-webfont.svg" />
<Resource Include="link.png" />
<Resource Include="Fonts\link.png" />
<Resource Include="LOCK.png" />
<Resource Include="Fonts\LOCK.png" />
<Resource Include="Lmage\inf.png" />
<Resource Include="Lmage\start2.png" />
<Resource Include="Lmage\start3.png" />

BIN
Fonts/LOCK.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
Fonts/link.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
LOCK.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

7
MainWindow.xaml

@ -10,7 +10,7 @@
mc:Ignorable="d" KeyDown="W_KeyDown"
Title="SUNLIGHT 838 b0.0.1 (2024/08/10)"
Height="720" Width="1280">
<!--WindowState ="Maximized" WindowStyle="None"-->
<!--WindowState ="Maximized" WindowStyle="None"-->
<Window.Resources>
<Style x:Key="RadioButtonStyle" TargetType="{x:Type RadioButton}">
<Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}"/>
@ -92,16 +92,17 @@
TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="20"
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
<TextBox Text="{Binding Status_Str}" HorizontalAlignment="Center" Height="50" Margin="0,0,0,0"
TextWrapping="Wrap" VerticalAlignment="Top" Width="700" FontSize="35"
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
<TextBox Text="{Binding Sys_Time}" HorizontalAlignment="Right" Height="50" Margin="0,0,5,0"
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
<Image HorizontalAlignment="Right" Height="40" VerticalAlignment="Top" Width="40" Margin="0,5,220,5" Source="/link.png"/>
<Image HorizontalAlignment="Right" Height="40" VerticalAlignment="Top" Width="40" Margin="0,5,270,5" Source="/LOCK.png"/>
</Grid>
</Grid>
</Window>

4
Properties/Resources.zh-TW.resx

@ -538,9 +538,9 @@
<value>故障</value>
</data>
<data name="Process_lock" xml:space="preserve">
<value />
<value>製程已鎖定</value>
</data>
<data name="refuse" xml:space="preserve">
<value />
<value>拒絕</value>
</data>
</root>

3
ViewModel/MainWindowViewModel.cs

@ -251,7 +251,8 @@ namespace DyeingComputer.ViewModel
{
UserButton = false;
IsInteractive = false;
WORK_RUN = 2;// 运行时停止键为
WORK_RUN = 2;//
SETP_runtime = true;
APILog.LOGlog(WorkNumder.ToString(), "UserActions", "WORK_RUN = RUN", WORK_RUN.ToString());
}

BIN
link.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Loading…
Cancel
Save