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