예제 #1
0
파일: UITestForm.cs 프로젝트: BgRva/Blob1
 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();
 }
예제 #2
0
파일: UITestForm.cs 프로젝트: BgRva/Blob1
 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();
     }
 }