private void btnAddType_Click(object sender, EventArgs e) { DishTypeInfoList dishTypeInfoList = new DishTypeInfoList(); dishTypeInfoList.Type += LoadTypeList; dishTypeInfoList.Show(); }
//分类管理 private void buttonfenlei_Click(object sender, EventArgs e) { DishTypeInfoList dtiList = new DishTypeInfoList(); dtiList.UpdateTypeEvent += UpdateType; dtiList.Show(); }
private void btnDishType_Click(object sender, EventArgs e) { DishTypeInfoList dtil = DishTypeInfoList.Create(); dtil.UpdateTypeEvent += UpdateType; dtil.Show(); dtil.Focus(); }
private void btnAddType_Click(object sender, EventArgs e) { DishTypeInfoList dtiList = new DishTypeInfoList(); dtiList.UpdateTypeEvent += UdateType; dtiList.Show(); dtiList.Focus(); }
public static DishTypeInfoList Create() { if (dtil == null || dtil.IsDisposed) { dtil = new DishTypeInfoList(); } return(dtil); }
public static DishTypeInfoList CreateDishTypeInfoList() { if (_dishTypeInfoList == null || _dishTypeInfoList.IsDisposed) { _dishTypeInfoList = new DishTypeInfoList(); } return(_dishTypeInfoList); }