Example #1
0
        /// <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);
            }
        }
Example #2
0
        /// <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);
              }
        }