public override void Modify(object sender, EventArgs e) { if (dgvBOM.SelectedRows.Count < 1) { frm.NoticeMessage = Resources.ModEmpty; } else { if (item.Product_Category.Contains("CS")) { SemiProductComp popup = new SemiProductComp(SemiProductComp.EditMode.Update, item); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.ModDone; GridViewReset(); InitMessage(); LoadGridView(); } } else if (item.Product_Category.Contains("CP")) { ProductComp popup = new ProductComp(ProductComp.EditMode.Update, item); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.ModDone; GridViewReset(); InitMessage(); LoadGridView(); } } else { frm.NoticeMessage = Resources.ModResourceError; } } }
private void ItemSelect(object sender, ToolStripItemClickedEventArgs e) { //DropDown 메뉴 중 반제품을 선택했을 때 반제품 조합 팝업을 띄우고 완제품을 선택하면 완제품 조합 팝업을 띄운다. if (e.ClickedItem.Text == "반제품") { SemiProductComp popup = new SemiProductComp(SemiProductComp.EditMode.Insert, null); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.AddDone; GridViewReset(); LoadGridView(); } } else { ProductComp popup = new ProductComp(ProductComp.EditMode.Insert, null); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.AddDone; GridViewReset(); LoadGridView(); } } }