Example #1
0
    }  // end sub

    //--------------------------------------------------------


    private void SetCalculationLabels()
    {
        string str1;

        if (classE1_1.glngwid == 0)
        {
            RadioButtonList1.Visible = true;
            RadioButtonList2.Visible = false;
            RadioButtonList3.Visible = false;
            Buttonr1_b.Text          = " --  Calculate results for Base Case -- ";
        }
        else
        {
            str1 = classE1_1.get_widname(classE1_1.glngwid);

            if (str1.Length == 0)
            {
                str1 = "No name ?";
            }
            Buttonr1_b.Text = " --  Calculate results for Current What-If Scenario '" + str1 + "' -- ";
            RadioButtonList2.Items[0].Text = "Keep lot size changes in What-If Scenario '" + str1 + "'";
            RadioButtonList1.Visible       = false;
            RadioButtonList2.Visible       = true;
            RadioButtonList3.Visible       = true;
            RadioButtonList3.Items[0].Text = "Save recent changes in Whatif '" + str1 + "'";
        }
    }