예제 #1
0
 public Form1()
 {
     calculation = new DiffusiveGelling();
     //calculation = new ClassicalAnalyticMoulding();
     InitializeComponent();
     CreateMenuStrips();
     UpdateView();
 }
예제 #2
0
 private void menuStrip_ItemClicked(object sender, EventArgs e)
 {
     var strip = sender as ToolStripMenuItem;
     calculation = menuBindings[strip].GetConstructors().First().Invoke(new object[] { }) as Calculation;
     UpdateView();
 }