Ejemplo n.º 1
0
        private void ClassifyForm_Load(object sender, EventArgs e)
        {
            cateDao  = new CategoryDao();
            typesDao = new TypesDao();

            btnSave.Visible   = false;
            btnCancel.Visible = false;

            ChangeToEditMode(false);

            btnRefresh_Click(null, null);
        }
Ejemplo n.º 2
0
        public static void UpdateCellTypeDictionary()
        {
            TypesDao      dao = new TypesDao();
            IList <Types> list;

            list = dao.GetList();

            dicCellType.Clear();
            foreach (var item in list)
            {
                dicCellType.Add(item.TypeId, item);
            }
        }
Ejemplo n.º 3
0
        private void MarkAddForm_Load(object sender, EventArgs e)
        {
            cateDao  = new CategoryDao();
            typesDao = new TypesDao();

            LoadTypes();
            if (IsAdd)
            {
                cmbMarkCategory.Focus();
                this.Text = "新增标记";
            }
            else
            {
                UpdateMarkInfo();
                txtMarkId.Text = MarkId.ToString();
                this.Text      = string.Format("修改标记");
            }
        }