Skip to content

Commit

Permalink
removed Selection of Day, Month and Year Textboxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
al-develop committed May 16, 2024
1 parent 0d2411a commit 963890a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions ReceiptOverview/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@
<TextBox Watermark="Day"
Name="TbxDay"
TabIndex="0"
GotFocus="TbxDay_OnGotFocus"
Text="{Binding CurrentPosition.Date.Day, Mode=TwoWay}" />
</StackPanel>
<StackPanel Orientation="Vertical"
Expand All @@ -225,7 +224,6 @@
<TextBox Watermark="Month"
TabIndex="1"
Name="TbxMonth"
GotFocus="TbxMonth_OnGotFocus"
Text="{Binding CurrentPosition.Date.Month, Mode=TwoWay}" />
</StackPanel>
<StackPanel Orientation="Vertical"
Expand All @@ -234,7 +232,6 @@
<TextBox Watermark="Year"
TabIndex="2"
Name="TbxYear"
GotFocus="TbxYear_OnGotFocus"
Text="{Binding CurrentPosition.Date.Year, Mode=TwoWay}" />
</StackPanel>
</StackPanel>
Expand Down
15 changes: 0 additions & 15 deletions ReceiptOverview/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,6 @@ private void TbxPrice_OnGotFocus(object? sender, GotFocusEventArgs e)
TbxPrice.SelectAll();
}

private void TbxDay_OnGotFocus(object? sender, GotFocusEventArgs e)
{
TbxDay.SelectAll();
}

private void TbxYear_OnGotFocus(object? sender, GotFocusEventArgs e)
{
TbxMonth.SelectAll();
}

private void TbxMonth_OnGotFocus(object? sender, GotFocusEventArgs e)
{
TbxYear.SelectAll();
}

private void BtnNewPos_OnClick(object? sender, RoutedEventArgs e)
{
TbxDay.Focus();
Expand Down

0 comments on commit 963890a

Please sign in to comment.