private void Add_btn_Click(object sender, EventArgs e) { AddRateNGForm Formadd = new AddRateNGForm("Add"); Formadd.vo = new RateNGVo(); Formadd.ShowDialog(); GridBind(); }
private void BindUpdateCavityData() { int selectedrowindex = RateNG_dgv.CurrentCell.RowIndex; AddRateNGForm addform = new AddRateNGForm("Update"); addform.RatelId = int.Parse(RateNG_dgv.Rows[selectedrowindex].Cells["rate_ng_id"].Value.ToString()); addform.RateCode = RateNG_dgv.Rows[selectedrowindex].Cells["rate_ng_cd"].Value.ToString(); addform.RateModel = RateNG_dgv.Rows[selectedrowindex].Cells["rate_ng_model"].Value.ToString(); addform.RateLine = RateNG_dgv.Rows[selectedrowindex].Cells["rate_ng_line"].Value.ToString(); addform.RateRatio = RateNG_dgv.Rows[selectedrowindex].Cells["rate_ng_ratio"].Value.ToString(); addform.ShowDialog(); GridBind(); }