예제 #1
0
        private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter = "QuestInfo (*.qi)|*.qi|All Files (*.*)|*.*";
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                CurrentAdventure.Save(sfd.FileName);
                saveToolStripMenuItem.Enabled = true;
                LastFileAccess = sfd.FileName;
                Dirty          = false;
            }
        }
예제 #2
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CurrentAdventure.Save(LastFileAccess);
     Dirty = false;
 }