Exemplo n.º 1
0
        private void Add_btn_Click(object sender, EventArgs e)
        {
            AddModelMasterForm newAddForm = new AddModelMasterForm();

            newAddForm.vo = new ModelVo();
            if (newAddForm.ShowDialog() == DialogResult.OK)
            {
                GridBind();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// selects user record for updation and show user form
        /// </summary>
        private void BindUpdateCavityData()
        {
            int selectedrowindex = Machine_dgv.SelectedCells[0].RowIndex;

            ModelVo vo = (ModelVo)Machine_dgv.Rows[selectedrowindex].DataBoundItem;

            AddModelMasterForm addform = new AddModelMasterForm();

            addform.vo = vo;

            if (addform.ShowDialog() == DialogResult.OK)
            {
                messageData = new MessageData("mmci00002", Properties.Resources.mmci00002, null);
                logger.Info(messageData);
                popUpMessage.Information(messageData, Text);

                GridBind();
            }
        }