public FontEditor_FromText(FontDef Def, IList<FontDef.CharDef> SelectedChars) { InitializeComponent(); _Def = Def; _SelectedChars = SelectedChars; }
public FontEditor_FromText(FontDef Def, IList <FontDef.CharDef> SelectedChars) { InitializeComponent(); _Def = Def; _SelectedChars = SelectedChars; }
private void ToolStripMenuItem_new_Click(object sender, EventArgs e) { if (MessageBox.Show("你确定要新建字模?\n\n所有未保存的修改将会丢失。", "新建字模", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { _FileName = String.Empty; _Def = new FontDef(); RefreshAll(); } }
private void ToolStripMenuItem_open_Click(object sender, EventArgs e) { if (DialogResult.OK == openFileDialog_def.ShowDialog()) { FontDef tDef = null; try { tDef = new FontDef(openFileDialog_def.FileName); } catch (Exception Expt) { Helper.ShowErr("打开字模失败!\n" + Expt.Message); return; } _Def = tDef; _FileName = openFileDialog_def.FileName; RefreshAll(); } }
public static DialogResult OpenDialog(FontDef Def, IList<FontDef.CharDef> SelectedChars) { FontEditor_FromText tForm = new FontEditor_FromText(Def, SelectedChars); return tForm.ShowDialog(); }
public static DialogResult OpenDialog(FontDef Def, IList <FontDef.CharDef> SelectedChars) { FontEditor_FromText tForm = new FontEditor_FromText(Def, SelectedChars); return(tForm.ShowDialog()); }