From f69d10065aa7c8ffd7868bdef63e4267c8bdac78 Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Sat, 20 Jan 2018 14:05:10 -0600 Subject: [PATCH] Changes for issue #121 --- GBM/Classes/XML Serialize Classes/Session.vb | 49 +++++ GBM/Forms/frmSessionExport.Designer.vb | 180 +++++++++++++++++++ GBM/Forms/frmSessionExport.resx | 120 +++++++++++++ GBM/Forms/frmSessionExport.vb | 90 ++++++++++ GBM/Forms/frmSessions.Designer.vb | 15 +- GBM/Forms/frmSessions.vb | 40 ++++- GBM/Game Backup Monitor.vbproj | 10 ++ GBM/Managers/mgrSessions.vb | 105 ++++++++++- GBM/My Project/Resources.Designer.vb | 162 +++++++++++++++++ GBM/My Project/Resources.resx | 54 ++++++ 10 files changed, 817 insertions(+), 8 deletions(-) create mode 100644 GBM/Classes/XML Serialize Classes/Session.vb create mode 100644 GBM/Forms/frmSessionExport.Designer.vb create mode 100644 GBM/Forms/frmSessionExport.resx create mode 100644 GBM/Forms/frmSessionExport.vb diff --git a/GBM/Classes/XML Serialize Classes/Session.vb b/GBM/Classes/XML Serialize Classes/Session.vb new file mode 100644 index 0000000..771be65 --- /dev/null +++ b/GBM/Classes/XML Serialize Classes/Session.vb @@ -0,0 +1,49 @@ +Imports System.Xml.Serialization + + +Public Class Session + Private sGame As String + Private sStart As String + Private sEnd As String + Private dHours As Double + + + Public Property GameName As String + Set(value As String) + sGame = value + End Set + Get + Return sGame + End Get + End Property + + + Public Property StartDate As String + Set(value As String) + sStart = value + End Set + Get + Return sStart + End Get + End Property + + + Public Property EndDate As String + Set(value As String) + sEnd = value + End Set + Get + Return sEnd + End Get + End Property + + + Public Property Hours As Double + Set(value As Double) + dHours = value + End Set + Get + Return dHours + End Get + End Property +End Class diff --git a/GBM/Forms/frmSessionExport.Designer.vb b/GBM/Forms/frmSessionExport.Designer.vb new file mode 100644 index 0000000..6007e42 --- /dev/null +++ b/GBM/Forms/frmSessionExport.Designer.vb @@ -0,0 +1,180 @@ + _ +Partial Class frmSessionExport + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + 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. + _ + Private Sub InitializeComponent() + Me.btnExport = New System.Windows.Forms.Button() + Me.btnCancel = New System.Windows.Forms.Button() + Me.grpExportType = New System.Windows.Forms.GroupBox() + Me.grpDateType = New System.Windows.Forms.GroupBox() + Me.optCSV = New System.Windows.Forms.RadioButton() + Me.optXML = New System.Windows.Forms.RadioButton() + Me.optCurrentLocale = New System.Windows.Forms.RadioButton() + Me.optUnix = New System.Windows.Forms.RadioButton() + Me.grpOptions = New System.Windows.Forms.GroupBox() + Me.chkCSVHeaders = New System.Windows.Forms.CheckBox() + Me.grpExportType.SuspendLayout() + Me.grpDateType.SuspendLayout() + Me.grpOptions.SuspendLayout() + Me.SuspendLayout() + ' + 'btnExport + ' + Me.btnExport.Location = New System.Drawing.Point(116, 226) + Me.btnExport.Name = "btnExport" + Me.btnExport.Size = New System.Drawing.Size(75, 23) + Me.btnExport.TabIndex = 3 + Me.btnExport.Text = "&Export" + Me.btnExport.UseVisualStyleBackColor = True + ' + 'btnCancel + ' + Me.btnCancel.Location = New System.Drawing.Point(197, 226) + Me.btnCancel.Name = "btnCancel" + Me.btnCancel.Size = New System.Drawing.Size(75, 23) + Me.btnCancel.TabIndex = 4 + Me.btnCancel.Text = "&Cancel" + Me.btnCancel.UseVisualStyleBackColor = True + ' + 'grpExportType + ' + Me.grpExportType.Controls.Add(Me.optXML) + Me.grpExportType.Controls.Add(Me.optCSV) + Me.grpExportType.Location = New System.Drawing.Point(12, 12) + Me.grpExportType.Name = "grpExportType" + Me.grpExportType.Size = New System.Drawing.Size(260, 70) + Me.grpExportType.TabIndex = 0 + Me.grpExportType.TabStop = False + Me.grpExportType.Text = "Export Type" + ' + 'grpDateType + ' + Me.grpDateType.Controls.Add(Me.optUnix) + Me.grpDateType.Controls.Add(Me.optCurrentLocale) + Me.grpDateType.Location = New System.Drawing.Point(12, 88) + Me.grpDateType.Name = "grpDateType" + Me.grpDateType.Size = New System.Drawing.Size(260, 70) + Me.grpDateType.TabIndex = 1 + Me.grpDateType.TabStop = False + Me.grpDateType.Text = "Date Type" + ' + 'optCSV + ' + Me.optCSV.AutoSize = True + Me.optCSV.Location = New System.Drawing.Point(6, 19) + Me.optCSV.Name = "optCSV" + Me.optCSV.Size = New System.Drawing.Size(46, 17) + Me.optCSV.TabIndex = 0 + Me.optCSV.TabStop = True + Me.optCSV.Text = "CSV" + Me.optCSV.UseVisualStyleBackColor = True + ' + 'optXML + ' + Me.optXML.AutoSize = True + Me.optXML.Location = New System.Drawing.Point(6, 42) + Me.optXML.Name = "optXML" + Me.optXML.Size = New System.Drawing.Size(47, 17) + Me.optXML.TabIndex = 1 + Me.optXML.TabStop = True + Me.optXML.Text = "XML" + Me.optXML.UseVisualStyleBackColor = True + ' + 'optCurrentLocale + ' + Me.optCurrentLocale.AutoEllipsis = True + Me.optCurrentLocale.Location = New System.Drawing.Point(6, 19) + Me.optCurrentLocale.Name = "optCurrentLocale" + Me.optCurrentLocale.Size = New System.Drawing.Size(248, 17) + Me.optCurrentLocale.TabIndex = 0 + Me.optCurrentLocale.TabStop = True + Me.optCurrentLocale.Text = "Current Locale" + Me.optCurrentLocale.UseVisualStyleBackColor = True + ' + 'optUnix + ' + Me.optUnix.AutoEllipsis = True + Me.optUnix.Location = New System.Drawing.Point(6, 42) + Me.optUnix.Name = "optUnix" + Me.optUnix.Size = New System.Drawing.Size(248, 17) + Me.optUnix.TabIndex = 1 + Me.optUnix.TabStop = True + Me.optUnix.Text = "Unix Timestamp" + Me.optUnix.UseVisualStyleBackColor = True + ' + 'grpOptions + ' + Me.grpOptions.Controls.Add(Me.chkCSVHeaders) + Me.grpOptions.Location = New System.Drawing.Point(12, 164) + Me.grpOptions.Name = "grpOptions" + Me.grpOptions.Size = New System.Drawing.Size(260, 45) + Me.grpOptions.TabIndex = 2 + Me.grpOptions.TabStop = False + Me.grpOptions.Text = "Other Options" + ' + 'chkCSVHeaders + ' + Me.chkCSVHeaders.AutoSize = True + Me.chkCSVHeaders.Location = New System.Drawing.Point(6, 19) + Me.chkCSVHeaders.Name = "chkCSVHeaders" + Me.chkCSVHeaders.Size = New System.Drawing.Size(167, 17) + Me.chkCSVHeaders.TabIndex = 0 + Me.chkCSVHeaders.Text = "Export Column Headers (CSV)" + Me.chkCSVHeaders.UseVisualStyleBackColor = True + ' + 'frmSessionExport + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(284, 261) + Me.Controls.Add(Me.grpOptions) + Me.Controls.Add(Me.grpDateType) + Me.Controls.Add(Me.grpExportType) + Me.Controls.Add(Me.btnCancel) + Me.Controls.Add(Me.btnExport) + Me.MaximizeBox = False + Me.MinimizeBox = False + Me.Name = "frmSessionExport" + Me.ShowIcon = False + Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide + Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent + Me.Text = "Session Export Options" + Me.grpExportType.ResumeLayout(False) + Me.grpExportType.PerformLayout() + Me.grpDateType.ResumeLayout(False) + Me.grpOptions.ResumeLayout(False) + Me.grpOptions.PerformLayout() + Me.ResumeLayout(False) + + End Sub + + Friend WithEvents btnExport As Button + Friend WithEvents btnCancel As Button + Friend WithEvents grpExportType As GroupBox + Friend WithEvents optXML As RadioButton + Friend WithEvents optCSV As RadioButton + Friend WithEvents grpDateType As GroupBox + Friend WithEvents optUnix As RadioButton + Friend WithEvents optCurrentLocale As RadioButton + Friend WithEvents grpOptions As GroupBox + Friend WithEvents chkCSVHeaders As CheckBox +End Class diff --git a/GBM/Forms/frmSessionExport.resx b/GBM/Forms/frmSessionExport.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/GBM/Forms/frmSessionExport.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GBM/Forms/frmSessionExport.vb b/GBM/Forms/frmSessionExport.vb new file mode 100644 index 0000000..0a4bc9b --- /dev/null +++ b/GBM/Forms/frmSessionExport.vb @@ -0,0 +1,90 @@ +Imports GBM.My.Resources + +Public Class frmSessionExport + + Private bXML As Boolean = True + Private bUnix As Boolean = False + Private bCSVHeaders As Boolean = True + + Public ReadOnly Property XML As Boolean + Get + Return bXML + End Get + End Property + + Public ReadOnly Property Unix As Boolean + Get + Return bUnix + End Get + End Property + + Public ReadOnly Property Headers As Boolean + Get + Return bCSVHeaders + End Get + End Property + + Private Sub SetOptions() + If optXML.Checked Then + bXML = True + Else + bXML = False + End If + + If optUnix.Checked Then + bUnix = True + Else + bUnix = False + End If + + If chkCSVHeaders.Checked Then + bCSVHeaders = True + Else + bCSVHeaders = False + End If + End Sub + + Private Sub SetForm() + Me.Text = frmSessionExport_FormName + + grpExportType.Text = frmSessionExport_grpExportType + grpDateType.Text = frmSessionExport_grpDateType + grpOptions.Text = frmSessionExport_grpOptions + + optCSV.Text = frmSessionExport_optCSV + optXML.Text = frmSessionExport_optXML + optCurrentLocale.Text = frmSessionExport_optCurrentLocale & " - " & Now + optUnix.Text = frmSessionExport_optUnix & " - " & mgrCommon.DateToUnix(Now) + + chkCSVHeaders.Text = frmSessionExport_chkCSVHeaders + + btnExport.Text = frmSessionExport_btnExport + btnCancel.Text = frmSessionExport_btnCancel + + optCSV.Checked = True + optCurrentLocale.Checked = True + End Sub + + Private Sub frmSessionExport_Load(sender As Object, e As EventArgs) Handles MyBase.Load + SetForm() + End Sub + + Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click + SetOptions() + Me.DialogResult = DialogResult.OK + End Sub + + Private Sub btnCancel_Click(sender As Object, e As EventArgs) Handles btnCancel.Click + Me.DialogResult = DialogResult.Cancel + End Sub + + Private Sub optCSV_CheckedChanged(sender As Object, e As EventArgs) Handles optCSV.CheckedChanged + If Not optCSV.Checked Then + chkCSVHeaders.Checked = False + chkCSVHeaders.Enabled = False + Else + chkCSVHeaders.Checked = True + chkCSVHeaders.Enabled = True + End If + End Sub +End Class \ No newline at end of file diff --git a/GBM/Forms/frmSessions.Designer.vb b/GBM/Forms/frmSessions.Designer.vb index 4b8e6dc..1166cc7 100644 --- a/GBM/Forms/frmSessions.Designer.vb +++ b/GBM/Forms/frmSessions.Designer.vb @@ -33,6 +33,7 @@ Partial Class frmSessions Me.btnClose = New System.Windows.Forms.Button() Me.lblDateRange = New System.Windows.Forms.Label() Me.lblTotalHours = New System.Windows.Forms.Label() + Me.btnExport = New System.Windows.Forms.Button() CType(Me.dgSessions, System.ComponentModel.ISupportInitialize).BeginInit() Me.SuspendLayout() ' @@ -141,16 +142,27 @@ Partial Class frmSessions Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.lblTotalHours.Location = New System.Drawing.Point(118, 531) Me.lblTotalHours.Name = "lblTotalHours" - Me.lblTotalHours.Size = New System.Drawing.Size(467, 13) + Me.lblTotalHours.Size = New System.Drawing.Size(361, 13) Me.lblTotalHours.TabIndex = 0 Me.lblTotalHours.Text = "Total Hours:" Me.lblTotalHours.TextAlign = System.Drawing.ContentAlignment.TopCenter ' + 'btnExport + ' + Me.btnExport.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) + Me.btnExport.Location = New System.Drawing.Point(485, 526) + Me.btnExport.Name = "btnExport" + Me.btnExport.Size = New System.Drawing.Size(100, 23) + Me.btnExport.TabIndex = 10 + Me.btnExport.Text = "&Export Grid" + Me.btnExport.UseVisualStyleBackColor = True + ' 'frmSessions ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.ClientSize = New System.Drawing.Size(784, 561) + Me.Controls.Add(Me.btnExport) Me.Controls.Add(Me.lblTotalHours) Me.Controls.Add(Me.lblDateRange) Me.Controls.Add(Me.btnClose) @@ -184,4 +196,5 @@ Partial Class frmSessions Friend WithEvents btnClose As Button Friend WithEvents lblDateRange As Label Friend WithEvents lblTotalHours As Label + Friend WithEvents btnExport As Button End Class diff --git a/GBM/Forms/frmSessions.vb b/GBM/Forms/frmSessions.vb index 4d0dcdb..66a0651 100644 --- a/GBM/Forms/frmSessions.vb +++ b/GBM/Forms/frmSessions.vb @@ -48,8 +48,8 @@ Public Class frmSessions Dim sFilter As String Dim dStart As DateTime Dim dEnd As DateTime - Dim iHours As Double - Dim iTotalHours As Double + Dim dHours As Double + Dim dTotalHours As Double If txtFilter.Text = String.Empty Then oData = mgrSessions.GetSessionRange(dtpStart.Value, dtpEnd.Value) @@ -63,12 +63,12 @@ Public Class frmSessions For Each dr As DataRow In oData.Tables(0).Rows dStart = mgrCommon.UnixToDate(dr("Start")) dEnd = mgrCommon.UnixToDate(dr("End")) - iHours = Math.Round(dEnd.Subtract(dStart).TotalHours, 2) - iTotalHours += iHours - dgSessions.Rows.Add(New Object() {dr("MonitorID"), dr("Name"), dr("Start"), dStart, dr("End"), dEnd, iHours}) + dHours = Math.Round(dEnd.Subtract(dStart).TotalHours, 2) + dTotalHours += dHours + dgSessions.Rows.Add(New Object() {dr("MonitorID"), dr("Name"), dr("Start"), dStart, dr("End"), dEnd, dHours}) Next - lblTotalHours.Text = mgrCommon.FormatString(frmSessions_lblTotalHours, iTotalHours) + lblTotalHours.Text = mgrCommon.FormatString(frmSessions_lblTotalHours, dTotalHours) dgSessions.AutoResizeColumns() End Sub @@ -178,6 +178,30 @@ Public Class frmSessions End Select End Sub + Private Sub ExportGrid() + Dim frm As New frmSessionExport + Dim sLocation As String + + frm.ShowDialog() + + If frm.DialogResult = DialogResult.OK Then + + If frm.XML Then + sLocation = mgrCommon.SaveFileBrowser("Session_Export", frmSessions_ChooseExportLocation, "xml", frmSessions_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmSessions_DefaultExportFileName) + Else + sLocation = mgrCommon.SaveFileBrowser("Session_Export", frmSessions_ChooseExportLocation, "csv", frmSessions_CSV, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmSessions_DefaultExportFileName) + End If + + If sLocation <> String.Empty Then + If frm.XML Then + mgrSessions.ExportAsXML(sLocation, frm.Unix, dgSessions) + Else + mgrSessions.ExportAsCSV(sLocation, frm.Unix, frm.Headers, dgSessions) + End If + End If + End If + End Sub + Private Sub frmSession_Load(sender As Object, e As EventArgs) Handles MyBase.Load SetForm() ResetFilterFields() @@ -223,6 +247,10 @@ Public Class frmSessions End If End Sub + Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click + ExportGrid() + End Sub + Private Sub dgSessions_ColumnHeaderMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles dgSessions.ColumnHeaderMouseClick HandleSort(e.ColumnIndex) End Sub diff --git a/GBM/Game Backup Monitor.vbproj b/GBM/Game Backup Monitor.vbproj index 5804d33..1384ed4 100644 --- a/GBM/Game Backup Monitor.vbproj +++ b/GBM/Game Backup Monitor.vbproj @@ -127,6 +127,7 @@ + @@ -170,6 +171,12 @@ Form + + frmSessionExport.vb + + + Form + frmSessions.vb @@ -276,6 +283,9 @@ frmIncludeExclude.vb + + frmSessionExport.vb + frmSessions.vb diff --git a/GBM/Managers/mgrSessions.vb b/GBM/Managers/mgrSessions.vb index 95d487d..910ef86 100644 --- a/GBM/Managers/mgrSessions.vb +++ b/GBM/Managers/mgrSessions.vb @@ -1,4 +1,9 @@ -Public Class mgrSessions +Imports GBM.My.Resources +Imports System.IO +Imports System.Xml.Serialization + + +Public Class mgrSessions Private Shared Function MapToObject(ByVal dr As DataRow) As clsSession Dim oSession As New clsSession @@ -123,4 +128,102 @@ Return iRowCount End Function + + Public Shared Function ExportAsCSV(ByVal sLocation As String, ByVal bUnixTime As Boolean, ByVal bHeaders As Boolean, ByRef dg As DataGridView) As Boolean + Dim oWriter As StreamWriter + Dim sHeader As String + Dim sCurrentRow As String + Dim oBannedColumns As New List(Of DataGridViewColumn) + + Try + oWriter = New StreamWriter(sLocation) + + 'Ban Columns + oBannedColumns.Add(dg.Columns("MonitorID")) + + If bUnixTime Then + oBannedColumns.Add(dg.Columns("Start")) + oBannedColumns.Add(dg.Columns("End")) + Else + oBannedColumns.Add(dg.Columns("StartUnix")) + oBannedColumns.Add(dg.Columns("EndUnix")) + End If + + 'Handle Headers + If bHeaders Then + sHeader = String.Empty + For Each dgCol As DataGridViewColumn In dg.Columns + If Not oBannedColumns.Contains(dgCol) Then + sHeader &= dgCol.HeaderText & "," + End If + Next + sHeader = sHeader.TrimEnd(",") + + oWriter.WriteLine(sHeader) + End If + + 'Handle Rows + For Each dgRow As DataGridViewRow In dg.Rows + sCurrentRow = String.Empty + For Each dgCell As DataGridViewCell In dgRow.Cells + If Not oBannedColumns.Contains(dg.Columns(dgCell.ColumnIndex)) Then + sCurrentRow &= dgCell.Value.ToString & "," + End If + Next + sCurrentRow = sCurrentRow.TrimEnd(",") + oWriter.WriteLine(sCurrentRow) + Next + + 'Finish up + oWriter.Flush() + oWriter.Close() + + mgrCommon.ShowMessage(mgrSessions_ExportSuccess, MsgBoxStyle.Information) + Return True + Catch ex As Exception + mgrCommon.ShowMessage(mgrSessions_ErrorExportFailure, ex.Message, MsgBoxStyle.Exclamation) + Return False + End Try + End Function + + Public Shared Function ExportAsXML(ByVal sLocation As String, ByVal bUnixTime As Boolean, ByRef dg As DataGridView) As Boolean + Dim oSerializer As XmlSerializer + Dim oWriter As StreamWriter + Dim oCurrentSession As Session + Dim oSessions As New List(Of Session) + Dim oBannedColumns As New List(Of DataGridViewColumn) + + Try + 'Format data for export + For Each dgRow As DataGridViewRow In dg.Rows + oCurrentSession = New Session + oCurrentSession.GameName = dgRow.Cells("Name").Value.ToString + If bUnixTime Then + oCurrentSession.StartDate = dgRow.Cells("StartUnix").Value.ToString + oCurrentSession.EndDate = dgRow.Cells("EndUnix").Value.ToString + Else + oCurrentSession.StartDate = dgRow.Cells("Start").Value.ToString + oCurrentSession.EndDate = dgRow.Cells("End").Value.ToString + End If + oCurrentSession.Hours = dgRow.Cells("Hours").Value.ToString + oSessions.Add(oCurrentSession) + Next + + 'Serialize + oSerializer = New XmlSerializer(oSessions.GetType, New XmlRootAttribute("Sessions")) + oWriter = New StreamWriter(sLocation) + oSerializer.Serialize(oWriter.BaseStream, oSessions) + + 'Finish up + oWriter.Flush() + oWriter.Close() + + mgrCommon.ShowMessage(mgrSessions_ExportSuccess, MsgBoxStyle.Information) + Return True + Catch ex As Exception + mgrCommon.ShowMessage(mgrSessions_ErrorExportFailure, ex.Message, MsgBoxStyle.Exclamation) + Return False + End Try + End Function + End Class \ No newline at end of file diff --git a/GBM/My Project/Resources.Designer.vb b/GBM/My Project/Resources.Designer.vb index a5ad239..512e9b1 100644 --- a/GBM/My Project/Resources.Designer.vb +++ b/GBM/My Project/Resources.Designer.vb @@ -3624,6 +3624,105 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to &Cancel. + ''' + Friend ReadOnly Property frmSessionExport_btnCancel() As String + Get + Return ResourceManager.GetString("frmSessionExport_btnCancel", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to &Export. + ''' + Friend ReadOnly Property frmSessionExport_btnExport() As String + Get + Return ResourceManager.GetString("frmSessionExport_btnExport", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Export Column Headers (CSV). + ''' + Friend ReadOnly Property frmSessionExport_chkCSVHeaders() As String + Get + Return ResourceManager.GetString("frmSessionExport_chkCSVHeaders", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Session Export Options. + ''' + Friend ReadOnly Property frmSessionExport_FormName() As String + Get + Return ResourceManager.GetString("frmSessionExport_FormName", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Date Type. + ''' + Friend ReadOnly Property frmSessionExport_grpDateType() As String + Get + Return ResourceManager.GetString("frmSessionExport_grpDateType", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Export Type. + ''' + Friend ReadOnly Property frmSessionExport_grpExportType() As String + Get + Return ResourceManager.GetString("frmSessionExport_grpExportType", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Other Options. + ''' + Friend ReadOnly Property frmSessionExport_grpOptions() As String + Get + Return ResourceManager.GetString("frmSessionExport_grpOptions", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to CSV. + ''' + Friend ReadOnly Property frmSessionExport_optCSV() As String + Get + Return ResourceManager.GetString("frmSessionExport_optCSV", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Current Locale. + ''' + Friend ReadOnly Property frmSessionExport_optCurrentLocale() As String + Get + Return ResourceManager.GetString("frmSessionExport_optCurrentLocale", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Unix Timestamp. + ''' + Friend ReadOnly Property frmSessionExport_optUnix() As String + Get + Return ResourceManager.GetString("frmSessionExport_optUnix", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to XML. + ''' + Friend ReadOnly Property frmSessionExport_optXML() As String + Get + Return ResourceManager.GetString("frmSessionExport_optXML", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to &Close. ''' @@ -3642,6 +3741,15 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to &Export Grid. + ''' + Friend ReadOnly Property frmSessions_btnExport() As String + Get + Return ResourceManager.GetString("frmSessions_btnExport", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to &Reset Filters. ''' @@ -3651,6 +3759,15 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Choose a location for the export file. + ''' + Friend ReadOnly Property frmSessions_ChooseExportLocation() As String + Get + Return ResourceManager.GetString("frmSessions_ChooseExportLocation", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to End. ''' @@ -3705,6 +3822,24 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to CSV. + ''' + Friend ReadOnly Property frmSessions_CSV() As String + Get + Return ResourceManager.GetString("frmSessions_CSV", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Game Session Export. + ''' + Friend ReadOnly Property frmSessions_DefaultExportFileName() As String + Get + Return ResourceManager.GetString("frmSessions_DefaultExportFileName", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Date Range:. ''' @@ -3741,6 +3876,15 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to XML. + ''' + Friend ReadOnly Property frmSessions_XML() As String + Get + Return ResourceManager.GetString("frmSessions_XML", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Executable. ''' @@ -5527,6 +5671,24 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to An error occured exporting the session data.[BR][BR][PARAM]. + ''' + Friend ReadOnly Property mgrSessions_ErrorExportFailure() As String + Get + Return ResourceManager.GetString("mgrSessions_ErrorExportFailure", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to The data has been exported successfully.. + ''' + Friend ReadOnly Property mgrSessions_ExportSuccess() As String + Get + Return ResourceManager.GetString("mgrSessions_ExportSuccess", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to An error occured creating a backup of the database file at [PARAM][BR][BR][PARAM]. ''' diff --git a/GBM/My Project/Resources.resx b/GBM/My Project/Resources.resx index 888e0db..d9e3c78 100644 --- a/GBM/My Project/Resources.resx +++ b/GBM/My Project/Resources.resx @@ -1954,4 +1954,58 @@ Total Hours: [PARAM] + + Choose a location for the export file + + + CSV + + + Game Session Export + + + XML + + + An error occured exporting the session data.[BR][BR][PARAM] + + + The data has been exported successfully. + + + &Cancel + + + &Export + + + Export Column Headers (CSV) + + + Session Export Options + + + Date Type + + + Export Type + + + Other Options + + + CSV + + + Current Locale + + + Unix Timestamp + + + XML + + + &Export Grid + \ No newline at end of file