-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainForm.cs
More file actions
82 lines (73 loc) · 2.01 KB
/
MainForm.cs
File metadata and controls
82 lines (73 loc) · 2.01 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
71
72
73
74
75
76
77
78
79
80
81
82
/*
* 由SharpDevelop创建。
* 用户: rsa
* 日期: 2016/11/2
* 时间: 22:27
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace SharpLearn
{
/// <summary>
/// the entrance of other tools
/// </summary>
public partial class MainForm : Form
{
Program p;
public MainForm(Program p)
{
InitializeComponent();
this.p = p;
this.StartPosition = FormStartPosition.Manual;
Program.log("location x is " + (this.Location.X + this.Size.Width + 5).ToString());
Program.logger.SetDesktopLocation(this.Location.X + this.Size.Width + 5, 0);
Program.logger.Location = new Point(this.Location.X + this.Size.Width + 25, 0);
Program.logger.StartPosition = FormStartPosition.Manual;
Program.logger.Show();
Program.log(Program.logger.Location.ToString());
}
void Button1Click(object sender, EventArgs e)
{
Program.log("clicked button 1");
FormSendMessage f = new FormSendMessage(p);
f.ShowDialog();
}
void ButtonRomoveClick(object sender, EventArgs e)
{
FormRemoveStringSpace form = new FormRemoveStringSpace(p);
form.ShowDialog();
}
void ButtonThreadTestClick(object sender, EventArgs e)
{
Form f = new FormThreadTest();
f.ShowDialog();
//code generate
try {
} catch (Exception) {
throw;
} finally {
}
}
void ButtonFormatStrClick(object sender, EventArgs e)
{
Form f = new Forms.FormFormatString();
f.ShowDialog();
}
void OpenFileClick(object sender, EventArgs e) {
Form f = new Forms.FormOpenFileByPath();
f.ShowDialog();
}
void TempTestClick(object sender, EventArgs e) {
Form f = new FormTemp();
f.Show();
}
private void geneQRCode_Click(object sender, EventArgs e) {
var form = new Forms.FormQRCode();
form.ShowDialog();
}
}
}