'****************************************************************************
'* Copyright (C) 2004 Peter Mortensen and Matthias Mann *
'* This file is part of MSQuant. *
'* *
'* MSQuant is distributed under the terms of *
'* the GNU General Public License. See src/COPYING.TXT or *
'* <http://www.gnu.org/licenses/gpl.txt> for details. *
'* *
'* MSQuant is free software; you can redistribute it *
'* and/or modify it under the terms of the GNU *
'* General Public License as published by the Free *
'* Software Foundation; either version 2 of the *
'* License, or (at your option) any later version. *
'* *
'* MSQuant is distributed in the hope that it will be *
'* useful, but WITHOUT ANY WARRANTY; without even the *
'* implied warranty of MERCHANTABILITY or FITNESS FOR *
'* A PARTICULAR PURPOSE. See the GNU General Public *
'* License for more details. *
'* *
'* You should have received a copy of the GNU General *
'* Public License along with MSQuant; if not, write to *
'* the Free Software Foundation, Inc., 59 Temple *
'* Place, Suite 330, Boston, MA 02111-1307 USA *
'* *
'* Purpose: <to be filled in>. *
'* *
'****************************************************************************
'****************************************************************************
'* CEBI *
'* Software Development Group *
'* Peter Mortensen *
'* E-mail: NUKESPAMMERSdrmortensen@get2netZZZZZZ.dk *
'* WWW: http://www.cebi.sdu.dk/ *
'* *
'* Program for post-processing of result from search in mass *
'* spectrometric data. *
'* *
'* FILENAME: formAbout.vb *
'* TYPE: VISUAL_BASIC *
'* *
'* CREATED: PM 2003-??-?? Vrs 1.0. *
'* UPDATED: PM 2004-xx-xx *
'* *
'****************************************************************************
Option Strict On 'Changed PM_OPTIONSTRICT 2003-02-13
Option Explicit On
'****************************************************************************
'd$ <summary>
'd$ Purpose: xyz
'd$
'd$ <see cref="xyz" />.
'd$ <applicationname>xyz</applicationname>
'd$ <author>Peter Mortensen</author>
'd$ <seealso>http://xyz</seealso>
'd$ <codetype>xyz</codetype>
'd$ </summary>
Public Class formAbout
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
Me.Init()
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 Label1 As System.Windows.Forms.Label
Friend WithEvents lblLinkToPIL As System.Windows.Forms.LinkLabel
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents lblLinkToOpenOfficeHomePage As System.Windows.Forms.LinkLabel
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents lblLinkToDownloadOpenOffice As System.Windows.Forms.LinkLabel
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents lblLinkToAppHomePage As System.Windows.Forms.LinkLabel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(formAbout))
Me.Label1 = New System.Windows.Forms.Label
Me.lblLinkToPIL = New System.Windows.Forms.LinkLabel
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.lblLinkToAppHomePage = New System.Windows.Forms.LinkLabel
Me.lblLinkToOpenOfficeHomePage = New System.Windows.Forms.LinkLabel
Me.Label4 = New System.Windows.Forms.Label
Me.lblLinkToDownloadOpenOffice = New System.Windows.Forms.LinkLabel
Me.Label5 = New System.Windows.Forms.Label
Me.btnCancel = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.Location = New System.Drawing.Point(69, 30)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(286, 24)
Me.Label1.TabIndex = 0
Me.Label1.Text = "xx"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'lblLinkToPIL
'
Me.lblLinkToPIL.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblLinkToPIL.Location = New System.Drawing.Point(108, 158)
Me.lblLinkToPIL.Name = "lblLinkToPIL"
Me.lblLinkToPIL.Size = New System.Drawing.Size(204, 23)
Me.lblLinkToPIL.TabIndex = 1
Me.lblLinkToPIL.TabStop = True
Me.lblLinkToPIL.Text = "http://www.cebi.sdu.dk/"
Me.lblLinkToPIL.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(118, 102)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(184, 40)
Me.Label2.TabIndex = 2
Me.Label2.Text = "Copyright by Peter Mortensen and Matthias Mann (until 2003). All rights reserved." & _
""
Me.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(118, 62)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(184, 16)
Me.Label3.TabIndex = 3
Me.Label3.Text = "xx"
Me.Label3.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'lblLinkToAppHomePage
'
Me.lblLinkToAppHomePage.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblLinkToAppHomePage.Location = New System.Drawing.Point(73, 190)
Me.lblLinkToAppHomePage.Name = "lblLinkToAppHomePage"
Me.lblLinkToAppHomePage.Size = New System.Drawing.Size(274, 23)
Me.lblLinkToAppHomePage.TabIndex = 4
Me.lblLinkToAppHomePage.TabStop = True
Me.lblLinkToAppHomePage.Text = "xyz"
Me.lblLinkToAppHomePage.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'lblLinkToOpenOfficeHomePage
'
Me.lblLinkToOpenOfficeHomePage.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblLinkToOpenOfficeHomePage.Location = New System.Drawing.Point(117, 242)
Me.lblLinkToOpenOfficeHomePage.Name = "lblLinkToOpenOfficeHomePage"
Me.lblLinkToOpenOfficeHomePage.Size = New System.Drawing.Size(238, 23)
Me.lblLinkToOpenOfficeHomePage.TabIndex = 5
Me.lblLinkToOpenOfficeHomePage.TabStop = True
Me.lblLinkToOpenOfficeHomePage.Text = "http://www.openoffice.org/"
Me.lblLinkToOpenOfficeHomePage.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label4.Location = New System.Drawing.Point(12, 242)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(109, 24)
Me.Label4.TabIndex = 6
Me.Label4.Text = "OpenOffice:"
Me.Label4.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'lblLinkToDownloadOpenOffice
'
Me.lblLinkToDownloadOpenOffice.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblLinkToDownloadOpenOffice.Location = New System.Drawing.Point(198, 280)
Me.lblLinkToDownloadOpenOffice.Name = "lblLinkToDownloadOpenOffice"
Me.lblLinkToDownloadOpenOffice.Size = New System.Drawing.Size(222, 23)
Me.lblLinkToDownloadOpenOffice.TabIndex = 7
Me.lblLinkToDownloadOpenOffice.TabStop = True
Me.lblLinkToDownloadOpenOffice.Text = "http://tinyurl.com/532ne6"
Me.lblLinkToDownloadOpenOffice.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label5.Location = New System.Drawing.Point(13, 280)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(195, 24)
Me.Label5.TabIndex = 8
Me.Label5.Text = "Download OpenOffice:"
Me.Label5.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'btnCancel
'
Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.btnCancel.Location = New System.Drawing.Point(454, 148)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(145, 32)
Me.btnCancel.TabIndex = 9
Me.btnCancel.Text = "for Esc to work...."
Me.btnCancel.UseVisualStyleBackColor = True
'
'formAbout
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.CancelButton = Me.btnCancel
Me.ClientSize = New System.Drawing.Size(415, 322)
Me.Controls.Add(Me.btnCancel)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.lblLinkToDownloadOpenOffice)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.lblLinkToOpenOfficeHomePage)
Me.Controls.Add(Me.lblLinkToAppHomePage)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.lblLinkToPIL)
Me.Controls.Add(Me.Label1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "formAbout"
Me.ResumeLayout(False)
End Sub
#End Region
'Changed PM_VERSION_INFO 2007-04-19
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub init()
'Rename the labels??
Label1.Text = _
AppConstants.LONG_APP & " " & _
App.quantApplication.versionString()
Label3.Text = _
"Release date: " & _
App.quantApplication.versionString_dateOnly()
'Changed PM_REFACTOR 2008-12-12
'Override anything set in the designer.
Me.Text = "About " & AppConstants.LONG_APP
Me.lblLinkToAppHomePage.Text = AppConstants.APP_HOMEPAGE
End Sub 'init()
'Changed PM_REFACTOR 2008-12-19
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub addLink( _
ByRef aLinkLabel As System.Windows.Forms.LinkLabel, _
ByRef anInURL As String)
Dim len As Integer = anInURL.Length
aLinkLabel.Links.Add(0, len, anInURL)
aLinkLabel.LinkBehavior = LinkBehavior.HoverUnderline
End Sub 'addLink()
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub formAbout_Load( _
ByVal aSender As System.Object, ByVal anEvent As System.EventArgs) _
Handles MyBase.Load
'Changed PM_MARKER_REFACTOR_OPPORTUNITY 2008-04-24
'Refactoring opportunity: length, redundant strings - one here
'and another in the designer.
'
'Already done in DTASC.
'Changed PM_REFACTOR 2008-12-19
'lblLinkToPIL.Links.Add(0, 23, "http://www.pil.sdu.dk/")
'lblLinkToPIL.LinkBehavior = LinkBehavior.HoverUnderline
addLink(lblLinkToPIL, "http://www.pil.sdu.dk/")
'Changed PM_REFACTOR 2008-12-19
'lblLinkToAppHomePage.Links.Add( _
' 0, 31, AppConstants.APP_HOMEPAGE)
'lblLinkToAppHomePage.LinkBehavior = LinkBehavior.HoverUnderline
addLink(lblLinkToAppHomePage, AppConstants.APP_HOMEPAGE)
addLink(lblLinkToOpenOfficeHomePage, "http://www.openoffice.org/")
addLink(lblLinkToDownloadOpenOffice, "http://tinyurl.com/532ne6")
'Note: a LinkClicked event is also needed for the link to work...
End Sub 'formAbout_Load()
'Changed PM_REFACTOR 2008-12-19
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub standardLinkBehavior( _
ByVal anEvent As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
System.Diagnostics.Process.Start(anEvent.Link.LinkData.ToString())
anEvent.Link.Visited = True
End Sub 'standardLinkBehavior()
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub lblLinkToPIL_LinkClicked( _
ByVal aSender As System.Object, _
ByVal anEvent As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
Handles lblLinkToPIL.LinkClicked
standardLinkBehavior(anEvent)
End Sub 'lblLinkToPIL_LinkClicked()
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub lblLinkToAppHomePage_LinkClicked( _
ByVal aSender As System.Object, _
ByVal anEvent As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
Handles lblLinkToAppHomePage.LinkClicked
standardLinkBehavior(anEvent)
End Sub 'lblLinkToAppHomePage_LinkClicked()
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub lblLinkToOpenOfficeHomePage_LinkClicked( _
ByVal aSender As System.Object, _
ByVal anEvent As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
Handles lblLinkToOpenOfficeHomePage.LinkClicked
standardLinkBehavior(anEvent)
End Sub 'lblLinkToOpenOfficeHomePage_LinkClicked()
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub lblLinkToDownloadOpenOffice_LinkClicked( _
ByVal aSender As System.Object, _
ByVal anEvent As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
Handles lblLinkToDownloadOpenOffice.LinkClicked
standardLinkBehavior(anEvent)
End Sub 'lblLinkToDownloadOpenOffice_LinkClicked()
'****************************************************************************
'* <placeholder for header> *
'****************************************************************************
Private Sub btnCancel_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnCancel.Click
'Note: button is not visible. This is only let Esc work...
Close()
End Sub 'btnCancel_Click()
End Class 'class formAbout
Generated by script codePublish.pl at 2009-01-05T15:20:59.