📄 edittaskform.vb
字号:
Imports System.Threading
Public Class EditTaskForm
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New(ByVal dl As DataLayer, ByVal taskRow As DataRow)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
m_DataLayer = dl
m_TaskRow = taskRow
End Sub
Public Sub New(ByVal dl As DataLayer, ByVal taskRow As DataRow, ByVal historyIndex As Integer)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
m_DataLayer = dl
m_TaskRow = taskRow
'show the individual history item
TabControl1.SelectedIndex = c_HistoryTabIndex
lvHistory.Items(historyIndex).Selected = True
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 TabControl1 As System.Windows.Forms.TabControl
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents cbAssignedTo As System.Windows.Forms.ComboBox
Friend WithEvents cbStatus As System.Windows.Forms.ComboBox
Friend WithEvents cbProgress As System.Windows.Forms.ComboBox
Friend WithEvents dtDueDate As System.Windows.Forms.DateTimePicker
Friend WithEvents txtSummary As System.Windows.Forms.TextBox
Friend WithEvents txtDescription As System.Windows.Forms.TextBox
Friend WithEvents cbPriority As System.Windows.Forms.ComboBox
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents lblChangedBy As System.Windows.Forms.Label
Friend WithEvents lblChangedOn As System.Windows.Forms.Label
Friend WithEvents lblTaskNumber As System.Windows.Forms.Label
Friend WithEvents lvHistory As System.Windows.Forms.ListView
Friend WithEvents chDateModified As System.Windows.Forms.ColumnHeader
Friend WithEvents chMofidifiedBy As System.Windows.Forms.ColumnHeader
Friend WithEvents txtHistorySummary As System.Windows.Forms.TextBox
Friend WithEvents txtHistoryDescription As System.Windows.Forms.TextBox
Friend WithEvents chAssignedTo As System.Windows.Forms.ColumnHeader
Friend WithEvents txtHistoryDueDate As System.Windows.Forms.TextBox
Friend WithEvents txtHistoryPriority As System.Windows.Forms.TextBox
Friend WithEvents txtHistoryStatus As System.Windows.Forms.TextBox
Friend WithEvents txtHistoryProgress As System.Windows.Forms.TextBox
Friend WithEvents lblChangedByPrefix As System.Windows.Forms.Label
Friend WithEvents lblChangedOnPrefix As System.Windows.Forms.Label
Friend WithEvents lblTaskNumberPrefix As System.Windows.Forms.Label
Friend WithEvents lblHistorySummary As System.Windows.Forms.Label
Friend WithEvents lblHistoryDescription As System.Windows.Forms.Label
Friend WithEvents lblHistoryPriority As System.Windows.Forms.Label
Friend WithEvents lblHistoryProgress As System.Windows.Forms.Label
Friend WithEvents lblHistoryDueDate As System.Windows.Forms.Label
Friend WithEvents lblHistoryStatus As System.Windows.Forms.Label
Friend WithEvents tabHistory As System.Windows.Forms.TabPage
Friend WithEvents lblDetailsSummary As System.Windows.Forms.Label
Friend WithEvents lblDetailsDescription As System.Windows.Forms.Label
Friend WithEvents lblDetailsPriority As System.Windows.Forms.Label
Friend WithEvents lblDetailsProgress As System.Windows.Forms.Label
Friend WithEvents lblDetailsDueDate As System.Windows.Forms.Label
Friend WithEvents lblDetailsStatus As System.Windows.Forms.Label
Friend WithEvents lblDetailsAssignedTo As System.Windows.Forms.Label
Friend WithEvents tabDetails As System.Windows.Forms.TabPage
Friend WithEvents btnOK As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(EditTaskForm))
Me.TabControl1 = New System.Windows.Forms.TabControl()
Me.tabDetails = New System.Windows.Forms.TabPage()
Me.btnCancel = New System.Windows.Forms.Button()
Me.btnOK = New System.Windows.Forms.Button()
Me.cbAssignedTo = New System.Windows.Forms.ComboBox()
Me.lblDetailsAssignedTo = New System.Windows.Forms.Label()
Me.cbStatus = New System.Windows.Forms.ComboBox()
Me.lblDetailsStatus = New System.Windows.Forms.Label()
Me.cbProgress = New System.Windows.Forms.ComboBox()
Me.dtDueDate = New System.Windows.Forms.DateTimePicker()
Me.lblDetailsDueDate = New System.Windows.Forms.Label()
Me.lblDetailsProgress = New System.Windows.Forms.Label()
Me.txtSummary = New System.Windows.Forms.TextBox()
Me.txtDescription = New System.Windows.Forms.TextBox()
Me.cbPriority = New System.Windows.Forms.ComboBox()
Me.lblDetailsPriority = New System.Windows.Forms.Label()
Me.lblDetailsDescription = New System.Windows.Forms.Label()
Me.lblDetailsSummary = New System.Windows.Forms.Label()
Me.tabHistory = New System.Windows.Forms.TabPage()
Me.txtHistoryProgress = New System.Windows.Forms.TextBox()
Me.txtHistoryStatus = New System.Windows.Forms.TextBox()
Me.txtHistoryPriority = New System.Windows.Forms.TextBox()
Me.txtHistoryDueDate = New System.Windows.Forms.TextBox()
Me.lblHistoryStatus = New System.Windows.Forms.Label()
Me.lblHistoryDueDate = New System.Windows.Forms.Label()
Me.lblHistoryProgress = New System.Windows.Forms.Label()
Me.txtHistorySummary = New System.Windows.Forms.TextBox()
Me.txtHistoryDescription = New System.Windows.Forms.TextBox()
Me.lblHistoryPriority = New System.Windows.Forms.Label()
Me.lblHistoryDescription = New System.Windows.Forms.Label()
Me.lblHistorySummary = New System.Windows.Forms.Label()
Me.lvHistory = New System.Windows.Forms.ListView()
Me.chDateModified = New System.Windows.Forms.ColumnHeader()
Me.chMofidifiedBy = New System.Windows.Forms.ColumnHeader()
Me.chAssignedTo = New System.Windows.Forms.ColumnHeader()
Me.PictureBox1 = New System.Windows.Forms.PictureBox()
Me.lblTaskNumberPrefix = New System.Windows.Forms.Label()
Me.lblChangedOnPrefix = New System.Windows.Forms.Label()
Me.lblChangedByPrefix = New System.Windows.Forms.Label()
Me.lblChangedBy = New System.Windows.Forms.Label()
Me.lblChangedOn = New System.Windows.Forms.Label()
Me.lblTaskNumber = New System.Windows.Forms.Label()
Me.TabControl1.SuspendLayout()
Me.tabDetails.SuspendLayout()
Me.tabHistory.SuspendLayout()
Me.SuspendLayout()
'
'TabControl1
'
Me.TabControl1.AccessibleDescription = resources.GetString("TabControl1.AccessibleDescription")
Me.TabControl1.AccessibleName = resources.GetString("TabControl1.AccessibleName")
Me.TabControl1.Alignment = CType(resources.GetObject("TabControl1.Alignment"), System.Windows.Forms.TabAlignment)
Me.TabControl1.Anchor = CType(resources.GetObject("TabControl1.Anchor"), System.Windows.Forms.AnchorStyles)
Me.TabControl1.Appearance = CType(resources.GetObject("TabControl1.Appearance"), System.Windows.Forms.TabAppearance)
Me.TabControl1.BackgroundImage = CType(resources.GetObject("TabControl1.BackgroundImage"), System.Drawing.Image)
Me.TabControl1.Controls.AddRange(New System.Windows.Forms.Control() {Me.tabDetails, Me.tabHistory})
Me.TabControl1.Dock = CType(resources.GetObject("TabControl1.Dock"), System.Windows.Forms.DockStyle)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -