-
Notifications
You must be signed in to change notification settings - Fork 532
/
Fmnote.cs
225 lines (217 loc) · 7.3 KB
/
Fmnote.cs
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace 天若OCR文字识别
{
// Token: 0x02000013 RID: 19
public partial class Fmnote : Form
{
// Token: 0x0600016E RID: 366 RVA: 0x00014CD8 File Offset: 0x00012ED8
public Fmnote()
{
this.InitializeComponent();
base.Focus();
base.TopMost = true;
base.ShowInTaskbar = false;
base.Location = new Point(Screen.AllScreens[0].WorkingArea.Width - base.Width, Screen.AllScreens[0].WorkingArea.Height - base.Height);
}
// Token: 0x0600016F RID: 367 RVA: 0x00014D50 File Offset: 0x00012F50
private void Form1_Load(object sender, EventArgs e)
{
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FmMain));
base.Icon = (Icon)componentResourceManager.GetObject("minico.Icon");
this.dataGridView1.ColumnCount = 1;
this.dataGridView1.RowCount = StaticValue.v_notecount;
this.dataGridView1.Columns[0].Width = Convert.ToInt32(400f * Program.factor);
this.dataGridView1.CellBorderStyle = DataGridViewCellBorderStyle.None;
this.dataGridView1.AllowUserToResizeRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
for (int i = 0; i < StaticValue.v_notecount; i++)
{
bool flag = i < 9;
if (flag)
{
this.dataGridView1.Rows[i].Cells[0].Value = "0" + (i + 1).ToString() + "." + StaticValue.v_note[i].ToString();
}
else
{
this.dataGridView1.Rows[i].Cells[0].Value = (i + 1).ToString() + "." + StaticValue.v_note[i].ToString();
}
}
this.dataGridView1.Columns[0].DefaultCellStyle.SelectionBackColor = Color.DodgerBlue;
this.dataGridView1.Size = new Size(Convert.ToInt32(402f * Program.factor), StaticValue.v_notecount * this.dataGridView1.Rows[0].Cells[0].Size.Height + 2);
base.ClientSize = this.dataGridView1.Size;
base.MaximumSize = new Size(base.Size.Width, Screen.GetWorkingArea(this).Height / 4 * 3);
this.dataGridView1.MaximumSize = new Size(base.Size.Width, Screen.GetWorkingArea(this).Height / 4 * 3 - 5);
}
// Token: 0x06000170 RID: 368 RVA: 0x00014F94 File Offset: 0x00013194
private void copy_click(object sender, EventArgs e)
{
string text = "";
int[] array = new int[this.dataGridView1.SelectedRows.Count];
int num = 0;
foreach (object obj in this.dataGridView1.SelectedRows)
{
DataGridViewRow dataGridViewRow = (DataGridViewRow)obj;
array[num] = Convert.ToInt32(dataGridViewRow.Cells[0].Value.ToString().Substring(0, 2));
num++;
}
int[] array2 = array;
for (int i = 0; i < array2.Length - 1; i++)
{
for (int j = 0; j < array2.Length - 1 - i; j++)
{
bool flag = array2[j] > array2[j + 1];
bool flag2 = flag;
bool flag3 = flag2;
bool flag4 = flag3;
bool flag5 = flag4;
bool flag6 = flag5;
bool flag7 = flag6;
bool flag8 = flag7;
if (flag8)
{
int num2 = array2[j];
array2[j] = array2[j + 1];
array2[j + 1] = num2;
}
}
}
for (int k = 0; k < array2.Length; k++)
{
bool flag9 = k == array2.Length - 1;
bool flag10 = flag9;
bool flag11 = flag10;
bool flag12 = flag11;
bool flag13 = flag12;
bool flag14 = flag13;
bool flag15 = flag14;
bool flag16 = flag15;
if (flag16)
{
text += this.dataGridView1.Rows[array2[k] - 1].Cells[0].Value.ToString().Remove(0, 3);
}
else
{
text = text + this.dataGridView1.Rows[array2[k] - 1].Cells[0].Value.ToString().Remove(0, 3) + "\r\n";
}
}
Clipboard.SetDataObject(text);
}
// Token: 0x06000171 RID: 369 RVA: 0x00002BA9 File Offset: 0x00000DA9
private void CopyItem_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}
// Token: 0x17000016 RID: 22
// (get) Token: 0x06000172 RID: 370 RVA: 0x00015198 File Offset: 0x00013398
// (set) Token: 0x06000173 RID: 371 RVA: 0x000151AC File Offset: 0x000133AC
public string Text_note
{
get
{
return null;
}
set
{
for (int i = 0; i < StaticValue.v_notecount; i++)
{
bool flag = i < 9;
bool flag2 = flag;
bool flag3 = flag2;
bool flag4 = flag3;
bool flag5 = flag4;
bool flag6 = flag5;
bool flag7 = flag6;
bool flag8 = flag7;
if (flag8)
{
this.dataGridView1.Rows[i].Cells[0].Value = "0" + (i + 1).ToString() + "." + StaticValue.v_note[i].ToString();
}
else
{
this.dataGridView1.Rows[i].Cells[0].Value = (i + 1).ToString() + "." + StaticValue.v_note[i].ToString();
}
}
}
}
// Token: 0x06000174 RID: 372 RVA: 0x0001528C File Offset: 0x0001348C
protected override void WndProc(ref Message m)
{
if (m.Msg == 274 && (int)m.WParam == 61536)
{
base.Visible = false;
return;
}
if (m.Msg == 163)
{
base.Location = new Point(Screen.AllScreens[0].WorkingArea.Width - base.Width, Screen.AllScreens[0].WorkingArea.Height - base.Height);
}
base.WndProc(ref m);
}
// Token: 0x06000175 RID: 373 RVA: 0x00015318 File Offset: 0x00013518
private void doub_click(object sender, EventArgs e)
{
bool flag = this.dataGridView1.SelectedCells[0].Value.ToString().Remove(0, 3) != "";
bool flag2 = flag;
bool flag3 = flag2;
bool flag4 = flag3;
bool flag5 = flag4;
bool flag6 = flag5;
bool flag7 = flag6;
bool flag8 = flag7;
if (flag8)
{
Clipboard.SetDataObject(this.dataGridView1.SelectedCells[0].Value.ToString().Remove(0, 3));
Fmflags fmflags = new Fmflags();
fmflags.Show();
fmflags.DrawStr("已复制");
}
}
// Token: 0x17000017 RID: 23
// (get) Token: 0x06000176 RID: 374 RVA: 0x00015198 File Offset: 0x00013398
// (set) Token: 0x06000177 RID: 375 RVA: 0x000153B4 File Offset: 0x000135B4
public string Text_note_change
{
get
{
return null;
}
set
{
this.dataGridView1.Rows.Clear();
this.dataGridView1.ColumnCount = 1;
this.dataGridView1.RowCount = StaticValue.v_notecount;
this.dataGridView1.Columns[0].Width = Convert.ToInt32(400f * Program.factor);
this.dataGridView1.CellBorderStyle = DataGridViewCellBorderStyle.None;
this.dataGridView1.AllowUserToResizeRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
for (int i = 0; i < StaticValue.v_notecount; i++)
{
bool flag = i < 9;
bool flag2 = flag;
bool flag3 = flag2;
bool flag4 = flag3;
bool flag5 = flag4;
bool flag6 = flag5;
bool flag7 = flag6;
bool flag8 = flag7;
if (flag8)
{
this.dataGridView1.Rows[i].Cells[0].Value = "0" + (i + 1).ToString() + ".";
}
else
{
this.dataGridView1.Rows[i].Cells[0].Value = (i + 1).ToString() + ".";
}
}
this.dataGridView1.Columns[0].DefaultCellStyle.SelectionBackColor = Color.DodgerBlue;
this.dataGridView1.Size = new Size(Convert.ToInt32(402f * Program.factor), StaticValue.v_notecount * this.dataGridView1.Rows[0].Cells[0].Size.Height + 2);
base.ClientSize = this.dataGridView1.Size;
base.MaximumSize = new Size(base.Size.Width, Screen.GetWorkingArea(this).Height / 4 * 3);
this.dataGridView1.MaximumSize = new Size(base.Size.Width, Screen.GetWorkingArea(this).Height / 4 * 3 - 5);
}
}
}
}