//TODO::Change to Objective function
        private void lvObjectiveFunction_DoubleClick(object sender, EventArgs e)
        {
            foreach (ListViewItem lvi in ((ListView)sender).SelectedItems)
            {
                int pos = lpr.getDecisionVariableIndex(lvi.Text);
                if (pos == -1)
                {
                    return;
                }

                using (ObjectiveFunctionDialog dialog = new ObjectiveFunctionDialog(lpr.getObjectiveFunction()))
                {
                    DialogResult result = dialog.ShowDialog();

                    switch (result)
                    {
                    // put in how you want the various results to be handled
                    // if ok, then something like var x = dialog.MyX;
                    case DialogResult.OK:
                    {
                        lpr.setObjectiveFunction(dialog.getLPREntry());

                        break;
                    }

                    case DialogResult.Cancel:
                    {
                        break;
                    }
                    }
                }
            }
            UpdateObjectiveFunctionGroup();
        }
        private void btnObjectiveFunctionAdd_Click(object sender, EventArgs e)
        {
            using (ObjectiveFunctionDialog dialog = new ObjectiveFunctionDialog(lpr.ListDecisionVaraibleNames()))
            {
                DialogResult result = dialog.ShowDialog();

                switch (result)
                {
                // put in how you want the various results to be handled
                // if ok, then something like var x = dialog.MyX;
                //TODO:: Fix so that you can get data from Dialog
                case DialogResult.OK:
                {
                    lpr.setObjectiveFunction(dialog.getLPREntry());
                    break;
                }

                case DialogResult.Cancel:
                {
                    break;
                }
                }
            }
            UpdateObjectiveFunctionGroup();
        }