Method
ToolStripMenuItem_open_Click
(object sender, EventArgs e)
Source from the content-addressed store, hash-verified
| 273 | } |
| 274 | |
| 275 | private void ToolStripMenuItem_open_Click(object sender, EventArgs e) |
| 276 | { |
| 277 | if (DialogResult.OK == openFileDialog_def.ShowDialog()) |
| 278 | { |
| 279 | FontDef tDef = null; |
| 280 | |
| 281 | try |
| 282 | { |
| 283 | tDef = new FontDef(openFileDialog_def.FileName); |
| 284 | } |
| 285 | catch (Exception Expt) |
| 286 | { |
| 287 | Helper.ShowErr("打开字模失败!\n" + Expt.Message); |
| 288 | return; |
| 289 | } |
| 290 | |
| 291 | _Def = tDef; |
| 292 | _FileName = openFileDialog_def.FileName; |
| 293 | |
| 294 | RefreshAll(); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | private void ToolStripMenuItem_save_Click(object sender, EventArgs e) |
| 299 | { |
Callers
nothing calls this directly
Tested by
no test coverage detected