Skip to content

Commit 963890a

Browse files
committed
removed Selection of Day, Month and Year Textboxes.
1 parent 0d2411a commit 963890a

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

ReceiptOverview/Views/MainWindow.axaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@
216216
<TextBox Watermark="Day"
217217
Name="TbxDay"
218218
TabIndex="0"
219-
GotFocus="TbxDay_OnGotFocus"
220219
Text="{Binding CurrentPosition.Date.Day, Mode=TwoWay}" />
221220
</StackPanel>
222221
<StackPanel Orientation="Vertical"
@@ -225,7 +224,6 @@
225224
<TextBox Watermark="Month"
226225
TabIndex="1"
227226
Name="TbxMonth"
228-
GotFocus="TbxMonth_OnGotFocus"
229227
Text="{Binding CurrentPosition.Date.Month, Mode=TwoWay}" />
230228
</StackPanel>
231229
<StackPanel Orientation="Vertical"
@@ -234,7 +232,6 @@
234232
<TextBox Watermark="Year"
235233
TabIndex="2"
236234
Name="TbxYear"
237-
GotFocus="TbxYear_OnGotFocus"
238235
Text="{Binding CurrentPosition.Date.Year, Mode=TwoWay}" />
239236
</StackPanel>
240237
</StackPanel>

ReceiptOverview/Views/MainWindow.axaml.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ private void TbxPrice_OnGotFocus(object? sender, GotFocusEventArgs e)
6060
TbxPrice.SelectAll();
6161
}
6262

63-
private void TbxDay_OnGotFocus(object? sender, GotFocusEventArgs e)
64-
{
65-
TbxDay.SelectAll();
66-
}
67-
68-
private void TbxYear_OnGotFocus(object? sender, GotFocusEventArgs e)
69-
{
70-
TbxMonth.SelectAll();
71-
}
72-
73-
private void TbxMonth_OnGotFocus(object? sender, GotFocusEventArgs e)
74-
{
75-
TbxYear.SelectAll();
76-
}
77-
7863
private void BtnNewPos_OnClick(object? sender, RoutedEventArgs e)
7964
{
8065
TbxDay.Focus();

0 commit comments

Comments
 (0)