-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
244 additions
and
99 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel/ImageConfigWindow.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Window x:Class="Portalum.TrwPrinter.EasyPrinterS3.ControlPanel.ImageConfigWindow" | ||
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:Portalum.TrwPrinter.EasyPrinterS3.ControlPanel" | ||
mc:Ignorable="d" | ||
Title="ImagePositionWindow" | ||
Height="229" | ||
Width="296" | ||
Background="{StaticResource SecondaryColor}" WindowStartupLocation="CenterOwner"> | ||
<Grid> | ||
<Button Style="{StaticResource BaseButtonStyle}" x:Name="ButtonFullSize" Content="Full Size 960x70" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="127" Height="30" Click="ButtonFullSize_Click"/> | ||
<Button Style="{StaticResource BaseButtonStyle}" x:Name="ButtonLeftBottom" Content="Bottom Left 200x20" HorizontalAlignment="Left" Margin="10,79,0,0" VerticalAlignment="Top" Click="ButtonLeftBottom200x20_Click" Width="127" Height="29"/> | ||
<Button Style="{StaticResource BaseButtonStyle}" x:Name="ButtonBottomRight200_20" Content="Bottom Right 200x20" HorizontalAlignment="Left" Margin="10,113,0,0" VerticalAlignment="Top" Width="127" Height="29" Click="ButtonBottomRight200x20_Click"/> | ||
<Button Style="{StaticResource BaseButtonStyle}" x:Name="ButtonHalfSize" Content="Half Size 450x35" HorizontalAlignment="Left" Margin="11,45,0,0" VerticalAlignment="Top" Width="126" Height="29" Click="ButtonHalfSize_Click"/> | ||
<Button Style="{StaticResource BaseButtonStyle}" x:Name="ButtonTopRight200_20" Content="Top Right 200x20" HorizontalAlignment="Left" Margin="10,147,0,0" VerticalAlignment="Top" Width="127" Height="29" Click="ButtonTopRight200_20_Click" /> | ||
</Grid> | ||
</Window> |
70 changes: 70 additions & 0 deletions
70
src/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel/ImageConfigWindow.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
using System.Windows; | ||
|
||
namespace Portalum.TrwPrinter.EasyPrinterS3.ControlPanel | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ImagePositionWindow.xaml | ||
/// </summary> | ||
public partial class ImageConfigWindow : Window | ||
{ | ||
public double X1 { get; set; } | ||
public double X2 { get; set; } | ||
public double Y1 { get; set; } | ||
public double Y2 { get; set; } | ||
|
||
public ImageConfigWindow() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private void ButtonLeftBottom200x20_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.X1 = 0; | ||
this.X2 = 200; | ||
this.Y1 = 0; | ||
this.Y2 = 20; | ||
|
||
this.DialogResult = true; | ||
} | ||
|
||
private void ButtonBottomRight200x20_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.X1 = 760; | ||
this.X2 = 960; | ||
this.Y1 = 0; | ||
this.Y2 = 20; | ||
|
||
this.DialogResult = true; | ||
} | ||
|
||
private void ButtonFullSize_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.X1 = 0; | ||
this.X2 = 960; | ||
this.Y1 = 0; | ||
this.Y2 = 70; | ||
|
||
this.DialogResult = true; | ||
} | ||
|
||
private void ButtonHalfSize_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.X1 = 0; | ||
this.X2 = 450; | ||
this.Y1 = 0; | ||
this.Y2 = 35; | ||
|
||
this.DialogResult = true; | ||
} | ||
|
||
private void ButtonTopRight200_20_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.X1 = 760; | ||
this.X2 = 960; | ||
this.Y1 = 50; | ||
this.Y2 = 70; | ||
|
||
this.DialogResult = true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.