private void BindUpdateCavityData()
        {
            int selectedrowindex = InvertoryTimeDetails_dgv.SelectedCells[0].RowIndex;

            InvertoryVo vo = (InvertoryVo)InvertoryTimeDetails_dgv.Rows[selectedrowindex].DataBoundItem;

            AddInvertoryTimeForm addform = new AddInvertoryTimeForm();

            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();
            }
        }
        private void Add_btn_Click(object sender, EventArgs e)
        {
            AddInvertoryTimeForm Formadd = new AddInvertoryTimeForm();

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