How to communicate between customizations in epicor? passing values between customization but i dont want to launch screen

Requirement:

Deploy the Requisition To-Do List on a separate stand-alone menu item instead of having it as an action item in the Requisition Entry screen.

Solution:

For this i created a customization in request entry screen.

On page load event I used this code to call todolist screen

oTrans.InvokeToDoList();

So now it becomes a stand alone menu

While closing todolist , Request entry screen got opened. so to avoid it , I created another customization in todolist screen to abruptly close request entry screen once user closes the todolist screen

For this i have coded like this

private void ToDoForm_Closing(object sender, System.ComponentModel.CancelEventArgs args)
{
// Add Event Handler Code
Form formtoclose=null;
foreach (Form f in Application.OpenForms)
{

        if (f.Name == "ReqEntryForm")
        {
            formtoclose = f;
        }
    }
    if(formtoclose!=null)
    formtoclose.Close();

}
Every thing working fine.

But getting object reference error . screenshot for reference.

image

The problem is while closing todolist screen i am trying to close requisition entry also .

On page load of requisition entry i called to launch todolist, while closing it is again hitting page load. how to avoid it.???

Thats why i am asking any communication / parameter/ values can be passed in between forms to skip calling page load of requisition entry