子功能页面完成
This commit is contained in:
commit
dfcbd0e5ec
2 files changed
+114
-12
No files matched your search
+15
-12
@@ -103,38 +103,41 @@
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
||||
Background="#FFEFEEEE" Visibility="Hidden"/>
|
||||
<TextBox x:Name="P1P" HorizontalAlignment="Right" Height="30" Margin="0,170,10,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||
Text="0" PreviewTextInput="Tb_KeyP1p" TextChanged="P1P_TextChanged"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
||||
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP1p"
|
||||
TextChanged="P1P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
||||
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
||||
<TextBlock x:Name="P2NP" HorizontalAlignment="Left" Height="30" Margin="210,205,0,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
||||
Background="#FFEFEEEE" Visibility="Hidden"/>
|
||||
<TextBox x:Name="P2P" HorizontalAlignment="Right" Height="30" Margin="0,205,10,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||
Text="0" PreviewTextInput="Tb_KeyP2p" InputMethod.IsInputMethodEnabled="False"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
||||
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP2p"
|
||||
TextChanged="P2P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
||||
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
||||
<TextBlock x:Name="P3NP" HorizontalAlignment="Left" Height="30" Margin="210,240,0,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
||||
Background="#FFEFEEEE" Visibility="Hidden"/>
|
||||
<TextBox x:Name="P3P" HorizontalAlignment="Right" Height="30" Margin="0,240,10,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||
Text="0" PreviewTextInput="Tb_KeyP3p" InputMethod.IsInputMethodEnabled="False"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
||||
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP3p"
|
||||
TextChanged="P3P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
||||
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
||||
<TextBlock x:Name="P4NP" HorizontalAlignment="Left" Height="30" Margin="210,275,0,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
||||
Background="#FFEFEEEE" Visibility="Hidden"/>
|
||||
<TextBox x:Name="P4P" HorizontalAlignment="Right" Height="30" Margin="0,275,10,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||
Text="0" PreviewTextInput="Tb_KeyP4p" InputMethod.IsInputMethodEnabled="False"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
||||
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP4p"
|
||||
TextChanged="P4P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
||||
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
||||
<TextBlock x:Name="P5NP" HorizontalAlignment="Left" Height="30" Margin="210,310,0,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
||||
Background="#FFEFEEEE" Visibility="Hidden"/>
|
||||
<TextBox x:Name="P5P" HorizontalAlignment="Right" Height="30" Margin="0,310,10,0"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||
Text="0" PreviewTextInput="Tb_KeyP5p"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
||||
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP5p"
|
||||
TextChanged="P5P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
||||
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
||||
</Grid>
|
||||
|
||||
|
||||
@@ -157,6 +157,8 @@ namespace DyeingComputer.Windows
|
||||
private void P1P_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dat_P !=0)
|
||||
{
|
||||
dat_D.BeginEdit();
|
||||
if (dat_P == 1)
|
||||
@@ -173,6 +175,103 @@ namespace DyeingComputer.Windows
|
||||
}
|
||||
dat_D.EndEdit();
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
private void P2P_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dat_P != 0)
|
||||
{
|
||||
dat_D.BeginEdit();
|
||||
if (dat_P == 1)
|
||||
{
|
||||
dat_D["Parameter1_S1"] = Convert.ToDouble(P2P.Text);
|
||||
}
|
||||
else if (dat_P == 2)
|
||||
{
|
||||
dat_D["Parameter1_S2"] = Convert.ToDouble(P2P.Text);
|
||||
}
|
||||
else if (dat_P == 3)
|
||||
{
|
||||
dat_D["Parameter1_S3"] = Convert.ToDouble(P2P.Text);
|
||||
}
|
||||
dat_D.EndEdit();
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
private void P3P_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dat_P != 0)
|
||||
{
|
||||
dat_D.BeginEdit();
|
||||
if (dat_P == 1)
|
||||
{
|
||||
dat_D["Parameter1_S1"] = Convert.ToDouble(P3P.Text);
|
||||
}
|
||||
else if (dat_P == 2)
|
||||
{
|
||||
dat_D["Parameter1_S2"] = Convert.ToDouble(P3P.Text);
|
||||
}
|
||||
else if (dat_P == 3)
|
||||
{
|
||||
dat_D["Parameter1_S3"] = Convert.ToDouble(P3P.Text);
|
||||
}
|
||||
dat_D.EndEdit();
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
private void P4P_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dat_P != 0)
|
||||
{
|
||||
dat_D.BeginEdit();
|
||||
if (dat_P == 1)
|
||||
{
|
||||
dat_D["Parameter1_S1"] = Convert.ToDouble(P4P.Text);
|
||||
}
|
||||
else if (dat_P == 2)
|
||||
{
|
||||
dat_D["Parameter1_S2"] = Convert.ToDouble(P4P.Text);
|
||||
}
|
||||
else if (dat_P == 3)
|
||||
{
|
||||
dat_D["Parameter1_S3"] = Convert.ToDouble(P4P.Text);
|
||||
}
|
||||
dat_D.EndEdit();
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
private void P5P_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dat_P != 0)
|
||||
{
|
||||
dat_D.BeginEdit();
|
||||
if (dat_P == 1)
|
||||
{
|
||||
dat_D["Parameter1_S1"] = Convert.ToDouble(P5P.Text);
|
||||
}
|
||||
else if (dat_P == 2)
|
||||
{
|
||||
dat_D["Parameter1_S2"] = Convert.ToDouble(P5P.Text);
|
||||
}
|
||||
else if (dat_P == 3)
|
||||
{
|
||||
dat_D["Parameter1_S3"] = Convert.ToDouble(P5P.Text);
|
||||
}
|
||||
dat_D.EndEdit();
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user