Exemplo n.º 1
0
        private void ShowRepeat()
        {
            var repeat = new RepeatDvo();
            var list   = new DictDao().List <RepeatDvo>(repeat);

            var idx = 0;

            foreach (var item in list)
            {
                CbRepeat.Items.Add(item);

                if (item.key == _Dto.repeat)
                {
                    CbRepeat.SelectedIndex = idx;
                }
                idx += 1;
            }
        }
Exemplo n.º 2
0
        private void ShowMethod()
        {
            var method = new MethodDvo();
            var list   = new DictDao().List <MethodDvo>(method);

            var idx = 0;

            foreach (var item in list)
            {
                CbMethod.Items.Add(item);

                if (item.key == _Dto.method)
                {
                    CbMethod.SelectedIndex = idx;
                }
                idx += 1;
            }
        }
Exemplo n.º 3
0
        public List <dynamic> queryDictByType(string type)
        {
            DictDao dao = new DictDao();

            return(dao.queryDictByType(type));
        }