/// <summary> /// 支付方式中的添加按钮的单击事件 /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> /// <remarks></remarks> private void btnPayTypeAdd_Click(object sender, EventArgs e) { frmPublicOperateArea myfrmPublicOperateArea = new frmPublicOperateArea(VariedEnum.ItemType.PayType); if (myfrmPublicOperateArea.ShowDialog() == DialogResult.OK) { RefreshData(); } }
//***************************添加按钮的单击事件*************************************// #region btnDishTypeAdd_Click菜品类别中添加按钮的单击事件 /// <summary> /// 菜品类别中添加按钮的单击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnDishTypeAdd_Click(object sender, EventArgs e) { frmPublicOperateArea myfrmPublicOperateArea = new frmPublicOperateArea(VariedEnum.ItemType.DishType); if (myfrmPublicOperateArea.ShowDialog() == DialogResult.OK) { LoadDishType(); } }
/// <summary> /// 菜品口味中修改按钮的单击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnDishTasteAlter_Click(object sender, EventArgs e) { if (this.gridViewDishTaste.SelectedRowsCount < 0) { XtraMessageBox.Show("请选择要修改的项", "操作违规", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } tempInfo = ClassAssist.CommonOperator.GetGVSelectRowInfo(this.gridViewDishTaste); if (tempInfo != null) { frmPublicOperateArea myfrmPublicOperateArea = new frmPublicOperateArea(VariedEnum.ItemType.TasteType, tempInfo); if (myfrmPublicOperateArea.ShowDialog() == DialogResult.Cancel) { RefreshData(); } } }