public void DoAction(string actionType) { switch (actionType) { case "0": if (_selectedInfo != null && _oanswer != null) { Satisfaction_3 frmEmpSurveysSubmit = new Satisfaction_3(_oanswer); //empSurveysInfo frmEmpSurveysSubmit.UserID = _selectedInfo.EmployeeID; frmEmpSurveysSubmit.EmployeeSurveyInfo = employeeSurveyInfo; EntityBrowser browser = new EntityBrowser(frmEmpSurveysSubmit); browser.MinHeight = 510; browser.MinWidth = 750; browser.FormType = FormTypes.Browse; browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } break; case "1": CancelAndClose(); break; } }
public void DoAction(string actionType) { switch (actionType) { case "0": if (_selectedInfo != null && _oanswer != null) { Satisfaction_3 frmEmpSurveysSubmit = new Satisfaction_3(_oanswer);//empSurveysInfo frmEmpSurveysSubmit.UserID = _selectedInfo.EmployeeID; frmEmpSurveysSubmit.EmployeeSurveyInfo = employeeSurveyInfo; EntityBrowser browser = new EntityBrowser(frmEmpSurveysSubmit); browser.MinHeight = 510; browser.MinWidth = 750; browser.FormType = FormTypes.Browse; browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } break; case "1": CancelAndClose(); break; } }