コード例 #1
0
        private void cmdSave_Click(object sender, EventArgs e)
        {
            FntWriter fw = new FntWriter(lblFile.Text, _glyphs);

            fw.WriteAll();
            Text = Text.Replace("*", "");
        }
コード例 #2
0
 private void cmdExit_Click(object sender, EventArgs e)
 {
     if (Text.Contains("*"))
     {
         DialogResult res = MessageBox.Show("Font is unsaved, do you wish to save now?", "Save", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
         if (res== DialogResult.Cancel) return;
         else if (res == DialogResult.No) Application.Exit();
         else
         {
             FntWriter fw = new FntWriter(lblFile.Text, _glyphs);
             fw.WriteAll();
         }
     }
     else Application.Exit();
 }
コード例 #3
0
 private void cmdExit_Click(object sender, EventArgs e)
 {
     if (Text.Contains("*"))
     {
         DialogResult res = MessageBox.Show("Font is unsaved, do you wish to save now?", "Save", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
         if (res == DialogResult.Cancel)
         {
             return;
         }
         else if (res == DialogResult.No)
         {
             Application.Exit();
         }
         else
         {
             FntWriter fw = new FntWriter(lblFile.Text, _glyphs);
             fw.WriteAll();
         }
     }
     else
     {
         Application.Exit();
     }
 }
コード例 #4
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     FntWriter fw = new FntWriter(lblFile.Text, _glyphs);
     fw.WriteAll();
     Text = Text.Replace("*","");
 }