private void ShowFrmCategoryAddOrModify(HandleStatus status, CategoryInfo category) { this.Hide(); FrmCategoryAddOrModify fcam = FrmCategoryAddOrModify.Single(status, category); fcam.FormClosed += fcam_FormClosed; fcam.Show(); }
private void ShowFrmCategoryAddOrModify(int temp, CategoryInfo c) { this.Hide(); FrmCategoryAddOrModify fcam = FrmCategoryAddOrModify.Single(temp, c); fcam.FormClosed += new FormClosedEventHandler(fcam_FormClosed); fcam.Show();//显示商品类别信息新增或者修改的窗体 }
public static FrmCategoryAddOrModify Single(HandleStatus status, CategoryInfo category) { if (instance == null || instance.IsDisposed) { instance = new FrmCategoryAddOrModify(status, category); } return(instance); }
public static FrmCategoryAddOrModify Single(int temp, CategoryInfo c) { if (_instance == null || _instance.IsDisposed) { _instance = new FrmCategoryAddOrModify(c); Temp = temp; } return(_instance); }
public static FrmCategoryAddOrModify Single(int temp, CategoryInfo c) { if (_instance == null || _instance.IsDisposed) { _instance = new FrmCategoryAddOrModify(c); Temp = temp; } return _instance; }