I am launching a form on a button click. I want to check first and see if the form is already open and if it is open I want to display a message telling them it is already open. Any ideas on how to do this. Here is my code for launching the form.
LaunchFormOptions lfo = new LaunchFormOptions();
System.Collections.Generic.Dictionary<string, string> mylist = new System.Collections.Generic.Dictionary<string, string>();
mylist.Add("custid", epiTextQS_CustID.Text.ToString());
mylist.Add("quantity", epiNumericQS_Qty.Text.ToString());
mylist.Add("partnum", epiTextQS_PartNum.Text.ToString());
mylist.Add("numofcolors", epiNumericQS_NumColors.Text.ToString());
mylist.Add("quantitybreaks", epiNumericQtyBreaks.Text.ToString());
mylist.Add("prevorderline", tbLineNumforQuote.Text.ToString());
mylist.Add("prevorder", tbOrderNumforQuote.Text.ToString());
{if(cbExcludePlusColor.Checked)
{
mylist.Add("excludepluscolor", "true");
}
else
{
mylist.Add("excludepluscolor", "false");
}
}
mylist.Add("enflow", tbQuoteAttachments1.Text.ToString());
mylist.Add("enflow2", tbQuoteAttachments2.Text.ToString());
mylist.Add("enflow3", tbQuoteAttachments3.Text.ToString());
mylist.Add("enflow4", tbQuoteAttachments4.Text.ToString());
mylist.Add("actiontype", "NewQuote");
mylist.Add("formtitle", "Quote Configurator Session 1");
mylist.Add("entitynum", "0");
string valuein = "Quote";
lfo.ValueIn = valuein;
lfo.ContextValue = mylist;
ProcessCaller.LaunchForm(oTrans, "SMCM001", lfo);