Ejemplo n.º 1
0
        private String callFrm(System.Windows.Forms.Form thisFrm, String query, String selectedText, int uptoIndex)
        {
            String    str;
            DataTable dtFirm = new DataTable();

            if (thisFrm.Name == "Login")
            {
                Database.GetOtherSqlData(query, dtFirm);
            }
            else
            {
                Database.GetSqlData(query, dtFirm);
            }
            //SelectAcc frm;
            //if (selectedText == "")
            //{
            SelectAcc frm = new SelectAcc(dtFirm, selectedText, uptoIndex);

            //}
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog(thisFrm);
            thisFrm.Activate();
            if (frm.outStr != null)
            {
                str = frm.outStr;
            }
            else
            {
                str = "";
            }

            return(str);
        }