-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmEditPlayerDialog.vb
61 lines (50 loc) · 1.87 KB
/
frmEditPlayerDialog.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Option Strict Off
Option Explicit On
Friend Class frmEditPlayerDialog
Inherits Form
' -------------------------------------------------------------------------------
' Dart Scorekeeper
'
' Written by Matthew Monroe
' Started in July 1999
' Ported to .NET in 2011
'
' E-mail: [email protected] or [email protected]
' Repository: https://github.com/alchemistmatt
'
' -------------------------------------------------------------------------------
'
' Licensed under the Apache License, Version 2.0; you may not use this file except
' in compliance with the License. You may obtain a copy of the License at
' http://www.apache.org/licenses/LICENSE-2.0
Private mPlayerNameUpdated As Boolean
Public ReadOnly Property PlayerNameUpdated() As Boolean
Get
Return mPlayerNameUpdated
End Get
End Property
Public Property PlayerName() As String
Get
Return txtPlayerName.Text
End Get
Set
txtPlayerName.Text = Value
mPlayerNameUpdated = False
End Set
End Property
Private Sub cmdCancel_Click(eventSender As Object, eventArgs As EventArgs) Handles cmdCancel.Click
mPlayerNameUpdated = False
Me.Hide()
End Sub
Private Sub cmdOK_Click(eventSender As Object, eventArgs As EventArgs) Handles cmdOK.Click
mPlayerNameUpdated = True
Me.Hide()
End Sub
Private Sub frmEditPlayerDialog_Load(eventSender As Object, eventArgs As EventArgs) Handles MyBase.Load
' Position form in window
Me.Left = (2 * Screen.PrimaryScreen.Bounds.Width - Me.Width) / 3
Me.Top = (Screen.PrimaryScreen.Bounds.Height - Me.Height) / 3
txtPlayerName.Text = String.Empty
mPlayerNameUpdated = False
End Sub
End Class