-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmMain.cs
More file actions
70 lines (61 loc) · 1.88 KB
/
frmMain.cs
File metadata and controls
70 lines (61 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace myproject
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen; //设置窗体居中显示
}
private void btnHomework2_Click(object sender, EventArgs e)
{
frmAlbum fm2 = new frmAlbum();
fm2.ShowDialog(); //显示模态窗体
}
private void btnHomework1_Click(object sender, EventArgs e)
{
//fm24就是frm24grade的实例
frm24grade fm24 = new frm24grade();
fm24.ShowDialog(); //显示模态窗体
}
private void button1_Click(object sender, EventArgs e)
{
frmSearchFile frmSearch = new frmSearchFile();
frmSearch.ShowDialog(); //显示模态窗体
}
private void btnCrawer_Click(object sender, EventArgs e)
{
frmTiebaSpider frmSpider = new frmTiebaSpider();
frmSpider.ShowDialog();
}
private void btnControls_Click(object sender, EventArgs e)
{
frm24grade fm24 = new frm24grade();
fm24.ShowDialog();
}
private void button1_Click_1(object sender, EventArgs e)
{
FrmOcr frmOcr = new FrmOcr();
frmOcr.ShowDialog();
}
private void btnSegment_Click(object sender, EventArgs e)
{
frmSegment frmSegment = new frmSegment();
frmSegment.ShowDialog();
}
private void btnLinkDb_Click(object sender, EventArgs e)
{
frmSQL fs = new frmSQL();
fs.ShowDialog();
}
}
}