// --- Event Handlers --- private void loadBlueprintFromToolStripMenuItem_Click(object sender, EventArgs e) { // query the user for the blueprint address LoadBlueprintDialog dialog = new LoadBlueprintDialog(); dialog.ShowDialog(); // load and display the blueprint try { if (DialogResult.OK == dialog.DialogResult) { Plug p = Plug.New(dialog.Url + "/@blueprint"); DreamMessage msg = p.Get(); SetCurrentBluebrint(dialog.Url, msg.ToDocument()); } } catch (Exception) { SetCurrentBluebrint(null, null); } }