private void button2_Click(object sender, EventArgs e) { SelectShipForm selectShipForm = new SelectShipForm(); selectShipForm.LoadBlueprints(OptionsForm.dataPath + "\\data\\blueprints.xml"); selectShipForm.Dispose(); this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); }
private void button5_Click(object sender, EventArgs e) { SelectShipForm selectShipForm = new SelectShipForm("modeb"); if (selectShipForm.ShowDialog() != System.Windows.Forms.DialogResult.Cancel) { this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } return; }