Example #1
0
        public FontEditor_FromText(FontDef Def, IList<FontDef.CharDef> SelectedChars)
        {
            InitializeComponent();

            _Def = Def;
            _SelectedChars = SelectedChars;
        }
Example #2
0
        public FontEditor_FromText(FontDef Def, IList <FontDef.CharDef> SelectedChars)
        {
            InitializeComponent();

            _Def           = Def;
            _SelectedChars = SelectedChars;
        }
Example #3
0
        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();
            }
        }
Example #4
0
        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();
            }
        }
Example #5
0
        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();
            }
        }
Example #6
0
        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();
            }
        }
Example #7
0
 public static DialogResult OpenDialog(FontDef Def, IList<FontDef.CharDef> SelectedChars)
 {
     FontEditor_FromText tForm = new FontEditor_FromText(Def, SelectedChars);
     return tForm.ShowDialog();
 }
Example #8
0
        public static DialogResult OpenDialog(FontDef Def, IList <FontDef.CharDef> SelectedChars)
        {
            FontEditor_FromText tForm = new FontEditor_FromText(Def, SelectedChars);

            return(tForm.ShowDialog());
        }