示例#1
0
    public Class()
    {
        if (condition == true)
        {
            control = new UserControl1();
        }
        else
        {
            control = new UserControl2();
        }

        control.LoadXML();
    }