Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
M1888
lottokone
Commits
9aa1b65c
Commit
9aa1b65c
authored
Apr 22, 2019
by
M1888
Browse files
release
parent
85cc6fe6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Lottokone/Asetukset.xaml.cs
View file @
9aa1b65c
...
@@ -38,10 +38,7 @@ namespace Lottokone
...
@@ -38,10 +38,7 @@ namespace Lottokone
}
}
public
void
txbChanged
(
object
sender
,
TextChangedEventArgs
e
)
public
void
txbChanged
(
object
sender
,
TextChangedEventArgs
e
)
{
{
// Yleismaallinen validaattori luvuille.
// validoidaan syötettä vähän, ettei mene älyttömäksi.
// Voisi tehdä tarkemminkin, voi olla että ei toimi ihan kuin suunniteltua
// jos lyö yhden lottorivin hinnaksi vaikka tuon 6 miljoonaa.
// En kuitenkaan nyt jaksa naputella ihan joka boksille omaa validaatiota.
TextBox
tb
=
sender
as
TextBox
;
TextBox
tb
=
sender
as
TextBox
;
if
(
tb
!=
null
)
if
(
tb
!=
null
)
{
{
...
@@ -52,8 +49,8 @@ namespace Lottokone
...
@@ -52,8 +49,8 @@ namespace Lottokone
switch
(
tb
.
Name
)
switch
(
tb
.
Name
)
{
{
case
"txbPelaajia"
:
case
"txbPelaajia"
:
// max
2
5 miljoonaa pelaajaa
// max 5 miljoonaa pelaajaa
maksimi
=
2
5
_000_000
;
maksimi
=
5
_000_000
;
break
;
break
;
case
"txbRiveja"
:
case
"txbRiveja"
:
// max 100 000 riviä per pelaaja
// max 100 000 riviä per pelaaja
...
...
Release.zip
View file @
9aa1b65c
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment