Files
Client/Server/ToolProject/RCMS_Tool/UserLastLogOut.vb
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

176 lines
6.0 KiB
VB.net
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Imports System.Text
Public Class UserLastLogOut
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents btnSearch As System.Windows.Forms.Button
Friend WithEvents txtSearchID As System.Windows.Forms.TextBox
Friend WithEvents grdResult As System.Windows.Forms.DataGrid
Friend WithEvents lbltitle As System.Windows.Forms.Label
Friend WithEvents grb_1 As System.Windows.Forms.GroupBox
Friend WithEvents lblhanaccount As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.lbltitle = New System.Windows.Forms.Label()
Me.grb_1 = New System.Windows.Forms.GroupBox()
Me.lblhanaccount = New System.Windows.Forms.Label()
Me.btnSearch = New System.Windows.Forms.Button()
Me.txtSearchID = New System.Windows.Forms.TextBox()
Me.grdResult = New System.Windows.Forms.DataGrid()
Me.grb_1.SuspendLayout()
CType(Me.grdResult, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'lbltitle
'
Me.lbltitle.AutoSize = True
Me.lbltitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.lbltitle.Font = New System.Drawing.Font("Gulim", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(129, Byte))
Me.lbltitle.Location = New System.Drawing.Point(392, 64)
Me.lbltitle.Name = "lbltitle"
Me.lbltitle.Size = New System.Drawing.Size(248, 24)
Me.lbltitle.TabIndex = 1
Me.lbltitle.Text = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>α<EFBFBD><CEB1><EFBFBD>/<2F>α׾ƿ<D7BE> <20><><EFBFBD><EFBFBD>"
'
'grb_1
'
Me.grb_1.Controls.AddRange(New System.Windows.Forms.Control() {Me.lblhanaccount, Me.btnSearch, Me.txtSearchID})
Me.grb_1.Location = New System.Drawing.Point(80, 104)
Me.grb_1.Name = "grb_1"
Me.grb_1.Size = New System.Drawing.Size(528, 64)
Me.grb_1.TabIndex = 2
Me.grb_1.TabStop = False
'
'lblhanaccount
'
Me.lblhanaccount.AutoSize = True
Me.lblhanaccount.Location = New System.Drawing.Point(60, 28)
Me.lblhanaccount.Name = "lblhanaccount"
Me.lblhanaccount.Size = New System.Drawing.Size(66, 14)
Me.lblhanaccount.TabIndex = 2
Me.lblhanaccount.Text = "<EFBFBD>Ѱ<EFBFBD><EFBFBD>Ӱ<EFBFBD><EFBFBD><EFBFBD>"
'
'btnSearch
'
Me.btnSearch.Location = New System.Drawing.Point(320, 24)
Me.btnSearch.Name = "btnSearch"
Me.btnSearch.Size = New System.Drawing.Size(88, 24)
Me.btnSearch.TabIndex = 1
Me.btnSearch.Text = "<EFBFBD>˻<EFBFBD>"
'
'txtSearchID
'
Me.txtSearchID.Location = New System.Drawing.Point(144, 24)
Me.txtSearchID.Name = "txtSearchID"
Me.txtSearchID.Size = New System.Drawing.Size(136, 21)
Me.txtSearchID.TabIndex = 0
Me.txtSearchID.Text = ""
'
'grdResult
'
Me.grdResult.DataMember = ""
Me.grdResult.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.grdResult.Location = New System.Drawing.Point(80, 176)
Me.grdResult.Name = "grdResult"
Me.grdResult.Size = New System.Drawing.Size(848, 488)
Me.grdResult.TabIndex = 3
'
'UserLastLogOut
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(864, 753)
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.grdResult, Me.grb_1, Me.lbltitle})
Me.Name = "UserLastLogOut"
Me.Text = "UserLastLotOut"
Me.grb_1.ResumeLayout(False)
CType(Me.grdResult, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
#End Region
Public Sub CurrentUserRefresh()
btnSearch.Enabled = False
If txtSearchID.Text = "" Then
MsgBox(ITextMSG.msg_inputadminid, MsgBoxStyle.OKOnly, ITextMSG.msg_confirm)
txtSearchID.Focus()
btnSearch.Enabled = True
Exit Sub
End If
<><C6AF> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID <20>˻<EFBFBD> <20><>Ŷ
SendPacket.SendViewLoginoutLog(txtSearchID.Text)
End Sub
Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click
ds.Tables(LastUserIndex).Clear()
CurrentUserRefresh()
End Sub
Private Sub UserLastLogOut_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ProcessPacket.IUserLastLogout = Me
txtSearchID.MaxLength = 15
Me.Text = ITextUserLogOut.formheader_last
Me.lbltitle.Text = ITextUserLogOut.formheader_last
Me.lblhanaccount.Text = ITextUserLogOut.lblhanaccount
btnSearch.Text = ITextButton.btnSearch
ds.Tables(LastUserIndex).Clear()
grdResult.DataSource = ds.Tables(LastUserIndex)
If IToolAdminRight.lastUserLogin = False Then
btnSearch.Enabled = False
Else
btnSearch.Enabled = True
End If
End Sub
Private Sub UserLastLogOut_UnLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Closed
ProcessPacket.IUserLastLogout = Nothing
ProcessPacket.IRylMDI.IUserLastLogOut = Nothing
End Sub
End Class