private void MenuExportTypeB_Click(object sender, EventArgs e) { if (panel.IsDisposed) { panel = new ExportPanel(); } panel.Show(Map); }
public Main() { InitializeComponent(); InitalizeButtonColors(); panel = new ExportPanel(); property = new Property(); coral_pen = new Pen(Brushes.Coral, 3); white_pen = new Pen(Brushes.White, 1); font = new Font("Consolas", 11); Map = new Map(); Map.Property.Width = DefaultMaxX + 1; Map.Property.Height = DefaultMaxY + 1; UpdateSize(); LoadTextureDirection(); SetDirectionPositions(); }