private void buttonNewItem_Click(object sender, EventArgs e) { ClearAllControls(); this.mEditMode = FrmItemEditMode.CreateNew; this.buttonNewItem.Enabled = false; this.buttonDupItem.Enabled = false; this.buttonDelItem.Enabled = false; this.buttonCancel.Visible = true; this.buttonAddOrModifyItem.Text = "完成新增"; this.labelStatus.Text = "当前状态:空白新增商品信息"; }
private void ResetButtonAndStatus() { this.mEditMode = FrmItemEditMode.ViewItem; this.buttonNewItem.Enabled = true; this.buttonDupItem.Enabled = true; this.buttonDelItem.Enabled = true; this.buttonCancel.Visible = false; this.labelCurrentStock.Visible = false; this.textBoxItemStock.Visible = false; this.labelStatus.Text = "当前状态:浏览商品信息"; this.buttonAddOrModifyItem.Text = "完成修改"; }
private void buttonDupItem_Click(object sender, EventArgs e) { this.mEditMode = FrmItemEditMode.DupExisting; this.buttonNewItem.Enabled = false; this.buttonDupItem.Enabled = false; this.buttonDelItem.Enabled = false; this.buttonCancel.Visible = true; this.labelCurrentStock.Visible = false; this.textBoxItemStock.Visible = false; this.labelStatus.Text = "当前状态:复制新增商品信息"; this.buttonAddOrModifyItem.Text = "完成新增"; }