private void mapSettingsToolStripMenuItem_Click(object sender, EventArgs e) { PropertyGridDialog d = new PropertyGridDialog(); d.SelectedObject = CurrentMap.Settings; if (d.ShowDialog() == DialogResult.Cancel) { return; } }
private void setMapSizeToolStripMenuItem_Click(object sender, EventArgs e) { PropertyGridDialog d = new PropertyGridDialog(); d.SelectedObject = new RectangleF { X = CurrentMap.Ground.Translation.X, Y = CurrentMap.Ground.Translation.Y, Width = CurrentMap.Settings.Size.Width, Height = CurrentMap.Settings.Size.Height, }; if (d.ShowDialog() == DialogResult.Cancel) { return; } CurrentMap.Resize(worldView.Device9, (RectangleF)d.SelectedObject); InitMap(); }
private void setMapSizeToolStripMenuItem_Click(object sender, EventArgs e) { PropertyGridDialog d = new PropertyGridDialog(); d.SelectedObject = new RectangleF { X = CurrentMap.Ground.Translation.X, Y = CurrentMap.Ground.Translation.Y, Width = CurrentMap.Settings.Size.Width, Height = CurrentMap.Settings.Size.Height, }; if (d.ShowDialog() == DialogResult.Cancel) return; CurrentMap.Resize(worldView.Device9, (RectangleF)d.SelectedObject); InitMap(); }
private void mapSettingsToolStripMenuItem_Click(object sender, EventArgs e) { PropertyGridDialog d = new PropertyGridDialog(); d.SelectedObject = CurrentMap.Settings; if (d.ShowDialog() == DialogResult.Cancel) return; }