private void cmdSave_Click(object sender, EventArgs e) { FntWriter fw = new FntWriter(lblFile.Text, _glyphs); fw.WriteAll(); Text = Text.Replace("*", ""); }
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(); }
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(); } }
private void cmdSave_Click(object sender, EventArgs e) { FntWriter fw = new FntWriter(lblFile.Text, _glyphs); fw.WriteAll(); Text = Text.Replace("*",""); }