Example #1
0
        private void AddUserControl_Load(object sender, EventArgs e)
        {
            UserMasterDao usrMasterDAOREf = new UserMasterDAOImpl();
            List <string> rolenamelist    = usrMasterDAOREf.getRoleName();

            foreach (var item in rolenamelist)
            {
                designationCmb.Items.Add(item);
            }
        }
Example #2
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            //  DataContext = new AddusrCtrlVM();
            UserMasterDAO usrMasterDAOREf = new UserMasterDAOImpl();
            List <string> rolenamelist    = usrMasterDAOREf.getRoleName();

            foreach (var item in rolenamelist)
            {
                DesgcomboBox.Items.Add(item);
            }
        }