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); }
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); } }
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("修改标记"); } }