private void openWithRandomDataToolStripMenuItem2_Click(object sender, EventArgs e) { INetwork network = BasicAdjListGenerator.GenerateAdjListWithDataAttribs(5, 7, false, true, true); var retriever = new NetworkPropertyRetrieverToPlainText(); var view = new NetworkPropertiesForm(); view.SetPropertiesText(retriever.GetProperties(network)); view.Show(); }
private void createNetworkToolStripMenuItem2_Click(object sender, EventArgs e) { var netForm = new NetGeneratorForm(); var dialogResult = netForm.ShowDialog(); if (dialogResult == DialogResult.OK) { var network = netForm.OutputNetwork; var retriever = new NetworkPropertyRetrieverToPlainText(); var view = new NetworkPropertiesForm(); view.SetPropertiesText(retriever.GetProperties(network)); view.Show(); } }