Wednesday, 3 October 2012

Calling one from to another form by supplying values


Calling Form
void clicked()
{
    Args ags = new Args(formStr(SecondForm));
    FormRun fr;
    Class2 class2;
    super();
    fr = classFactory.formRunClass(ags);
    class2 = new Class2();
    class2.SetValues(5,6);
    ags.object(class2);
    fr.init();
    fr.run();
    fr.wait();
}

Called Form


public void init()
{
    Class2 c2;
    c2 = element.args().object();
    super();
    StringEdit.text(int2str(c2.getA()));
    StringEdit1.text(int2str(c2.getB()));
    

}

No comments:

Post a Comment