最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
分层体系结构(MVC)四
时间:2022-07-02 12:06:21 编辑:袖梨 来源:一聚教程网
四、WinForm 层
WinForm 层主要完成与用户互动操作,以及传递参数等。代码相对简单,因为工作都在下面的基层实现了。
以处理用户登录的代码login.vb为例,给大家一个概要的印象。
login.vb代码如下:
Public Class login
Inherits System.Windows.Forms.Form
Protected user As business.login.UserLimits
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
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
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
相关文章
- 秘塔猫写作网页版直达-秘塔写作猫官网入口 03-22
- 鸣潮3.2声骸管理方案套装码合集-声骸管理方案是设置弃置还是锁 03-22
- 鸣潮3.2版本更新内容-鸣潮「于影中启明的决心」3.2版本内容说明 03-22
- 归环抽卡概率有多高 03-22
- duyin抖音官网首页-网页版入口地址 03-22
- 奇漫屋免费版下载入口安卓版-奇漫屋app下载安装官方正版 03-22