Beispiel #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter = "HeightMap|*.map";
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                Map.Save(sfd.FileName);
            }
        }
        private void btnSave_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            Cursor.Current = Cursors.WaitCursor;
            sfd.Filter     = "HeightMap|*.map";
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                Map.Save(sfd.FileName);
            }
            Cursor.Current = Cursors.Default;
        }