public void Execute(DataRow drMenu) { int menuID = Int32.Parse(drMenu["MenuPluginID"].ToString()); if (_lstInfo[0].CType == ICType.Custom && _lstInfo[0].MenuID == menuID) { GLChooseTrans frm = new GLChooseTrans(drMenu["ExtraSql"].ToString()); frm.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; frm.Text = drMenu["MenuName"].ToString(); frm.ShowDialog(); } }
private Form ExecuteFunctions(StructInfo si) { Form f = new Form(); switch (si.MenuId) { case 1002: GLChooseTrans frm = new GLChooseTrans(); return(frm); //frm.Text = si.MenuName; //frm.ShowDialog(); // break; } return(f); }