Example #1
0
        private void BindUpdateCavityData()
        {
            int selectedrowindex = RangeOven_dgv.SelectedCells[0].RowIndex;

            RangeVo vo = (RangeVo)RangeOven_dgv.Rows[selectedrowindex].DataBoundItem;

            AddRangeLS12Form addform = new AddRangeLS12Form();

            addform.vo = vo;
            addform.ShowDialog();
            if (addform.IntSuccess > 0)
            {
                messageData = new MessageData("mmci00002", Properties.Resources.mmci00002, null);
                logger.Info(messageData);
                popUpMessage.Information(messageData, Text);
                GridBind();
            }
            else if (addform.IntSuccess == 0)
            {
                messageData = new MessageData("mmci00007", Properties.Resources.mmci00007, null);
                logger.Info(messageData);
                popUpMessage.Information(messageData, Text);
                GridBind();
            }
        }
Example #2
0
        private void Add_btn_Click(object sender, EventArgs e)
        {
            AddRangeLS12Form Formadd = new AddRangeLS12Form();

            Formadd.vo = new RangeVo();
            if (Formadd.ShowDialog() == DialogResult.OK)
            {
                GridBind();
            }
        }