// All computation modules extract their raw data from Data and add their results to Data, where it can be displayed and output #region Computation Button Clicks //private void DummyClick(object sender, EventArgs e) //{ // /// This is a dummy stub for new calculations // // /// Use try catch method for better error handling // try // { // /// Instanteate your calculation class here // YourCalc calc = new YourCalc(); // // /// Run your calculation here - Note return Data is the modified Data that includes the output of your calculation // Data = calc.YourCalc(Data); // // /// Add the buttons to display your output graphically // AddButtons("calculated"); // } // catch // { // /// Place error handling here // } //} private void ComputeRopClick(object sender, EventArgs e) { // ROP Approach 1 calculation try { ComputeROPClass calc = new ComputeROPClass(); Data = calc.ComputeRop(Data); AddButtons("calculated"); } catch { } }
// All computation modules extract their raw data from Data and add their results to Data, where it can be displayed and output #region Computation Button Clicks //private void DummyClick(object sender, EventArgs e) //{ // /// This is a dummy stub for new calculations // // /// Use try catch method for better error handling // try // { // /// Instanteate your calculation class here // YourCalc calc = new YourCalc(); // // /// Run your calculation here - Note return Data is the modified Data that includes the output of your calculation // Data = calc.YourCalc(Data); // // /// Add the buttons to display your output graphically // AddButtons("calculated"); // } // catch // { // /// Place error handling here // } //} private void ComputeRopClick(object sender, EventArgs e) { // ROP Approach 1 calculation try { ComputeROPClass calc = new ComputeROPClass(); Data = calc.ComputeRop(Data); AddButtons("calculated"); } catch { } }