Hi,
I need to pass arguments from function of one form to function of another form
I am doing something like this
public void GenerateGatewayMessagesPlots(string dataLogFile, string numofBuses, string select1, string select2, string select3, string select4)
{
List<GatewayMessageDetails> GWmsgDetailsList = new List<GatewayMessageDetails>();
GWmsgDetailsList = new GatewayMsgIDs(dataLogFile).ResponseTimeofMsgs(numofBuses, select1, select2, select3, select4);
PlotGWMsgsData(GWmsgDetailsList);
}
But I do not want to create new instance of the form GatewayMsgIDs
new GatewayMsgIDs(dataLogFile).ResponseTimeofMsgs(numofBuses, select1, select2, select3, select4);
Is there some way that I can remove new keyword and pass the arguments to the form
Because when I am using new keyword some parameters are by default going to null in the form GatewayMsgIDs
Is there some way that I can fix this???
Thanks
John