Пример #1
0
        private void newButton_Click(object sender, EventArgs e)
        {
            NewMenu n = new NewMenu();

            if (n.ShowDialog() == DialogResult.OK)
            {
                new MapEditor(this, MapReader.read(n.getSavePath()), n.getSavePath()).Show();
                Hide();
            }
        }
Пример #2
0
        private void editButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog o = new OpenFileDialog();

            o.Filter = "*.lpf | *.LPF";

            if (o.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    new MapEditor(this, MapReader.read(o.FileName), o.FileName).Show();
                    Hide();
                }
                catch (Exception ex) { Console.WriteLine(ex.Message); }
            }
        }