/// <summary> /// save the selected font for stm32plus /// </summary> private void _btnSaveStm32plus_Click(object sender, EventArgs e) { Stm32plusFontWriter fw; try { UpdatePreviewEvent(null, null); fw = new Stm32plusFontWriter(); fw.FontDef = _fd; fw.Write(this); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// save the selected font for stm32plus /// </summary> private void _btnSaveStm32plus_Click(object sender, EventArgs e) { Stm32plusFontWriter fw; try { UpdatePreviewEvent(null,null); fw=new Stm32plusFontWriter(); fw.FontDef=_fd; fw.Write(this); } catch(Exception ex) { MessageBox.Show(ex.Message,"Error",MessageBoxButtons.OK,MessageBoxIcon.Error); } }