示例#1
0
        /// <summary>
        ///     添加(必须实装)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var prospectingLineInfoEnteringForm = new ProspectingLineInfoEntering();

            if (DialogResult.OK == prospectingLineInfoEnteringForm.ShowDialog())
            {
                RefreshData();
            }
        }
示例#2
0
        /// <summary>
        ///     修改(必须实装)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            var prospectingLineInfoEnteringForm =
                new ProspectingLineInfoEntering((ProspectingLine)gridView1.GetFocusedRow());

            if (DialogResult.OK == prospectingLineInfoEnteringForm.ShowDialog())
            {
                RefreshData();
            }
        }